Operators
The operator for a criteria item in a query can be specified as a string, or using a class constant. For more concise syntax, the QueryBuilder
class can be referred to using the alias QB
, and each operator has a shorthand alias also. But you can just use the operator itself as a string if you prefer. The following operators are supported (all are case insensitive):
Operator String | Constant | Notes |
= | | |
!= | | |
> | | |
>= | | |
< | | |
<= | | |
IN |
| Value must be an array |
NOT IN |
| Value must be an array |
IS |
| Value must be null |
IS NOT |
| Value must be null |
BETWEEN |
| Two values must be supplied (in an array) |
BEGINSWITH |
| |
ENDSWITH |
| |
CONTAINS |
| |
LIKE |
|
Last updated