Get all operators allowed by selectors
Available since version 3.0.154.
Usage
// basic usage
$array = Selectors::getOperators();
// usage with all arguments
$array = Selectors::getOperators(array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
options (optional) | array |
|
Return value
array
string
int
Returned array where values are operators and keys are class names (or requested 'getIndexType or 'getValueType' options) If 'operator' option specified, return value is string, int or array (of requested 'getValueType'), and there is no index.
Selectors methods and properties
API reference based on ProcessWire core version 3.0.236