GREATER
GREATER
A helper class to allow easy programmatic construction of TinyQ expressions.
__construct()
Construct an instance.
use \IDFocus\TinyQ\Builder;
$builder = new Builder();
$builder->not()
->equal('name', 'henry.aaron')
->or()
->lparen()
->greaterOrEqual('age', 18)
->and()
->LessOrEqual('age', 65)
->rparen();
echo $builder->build(); // .tname.ehenry..aaron.o.sage.h18.aage.m65.f
greater(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the ">" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
greaterOrEqual(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "<=" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
less(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "<" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
lessOrEqual(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "<=" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
notEqual(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "!=" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
not() : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "NOT" operator to the expression.
like(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "LIKE" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
lparen() : \IDFocus\TinyQ\Builder
Append the equivalent of a left parenthesis (the left grouping operator);
rparen() : \IDFocus\TinyQ\Builder
Append the equivalent of a right parenthesis (the right grouping operator);
equal(string $key, mixed $value) : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "==" operator to the expression.
| string | $key | Property to search |
| mixed | $value | Searchterm |
reset() : \IDFocus\TinyQ\Builder
Reset the instance so another expression can be built.
_and() : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "AND" operator to the expression. Method for reserved `and` keyword.
_or() : \IDFocus\TinyQ\Builder
Add the TinyQ equivalent of the "OR" operator to the expression. Method for reserved `or` keyword.