class ExpressionBuilder (View source)

Builder for Expressions in the {@link Selectable} interface.

Important Notice for interoperable code: You have to use scalar values only for comparisons, otherwise the behavior of the comparison may be different between implementations (Array vs ORM vs ODM).

Methods

andX(mixed $x = null)

No description

orX(mixed $x = null)

No description

eq(string $field, mixed $value)

No description

gt(string $field, mixed $value)

No description

lt(string $field, mixed $value)

No description

gte(string $field, mixed $value)

No description

lte(string $field, mixed $value)

No description

neq(string $field, mixed $value)

No description

isNull(string $field)

No description

in(string $field, array $values)

No description

notIn(string $field, array $values)

No description

contains(string $field, mixed $value)

No description

memberOf(string $field, mixed $value)

No description

startsWith(string $field, mixed $value)

No description

endsWith(string $field, mixed $value)

No description

Details

CompositeExpression andX(mixed $x = null)

Parameters

mixed $x

Return Value

CompositeExpression

CompositeExpression orX(mixed $x = null)

Parameters

mixed $x

Return Value

CompositeExpression

Comparison eq(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison gt(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison lt(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison gte(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison lte(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison neq(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison isNull(string $field)

Parameters

string $field

Return Value

Comparison

Comparison in(string $field, array $values)

Parameters

string $field
array $values

Return Value

Comparison

Comparison notIn(string $field, array $values)

Parameters

string $field
array $values

Return Value

Comparison

Comparison contains(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison memberOf(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison startsWith(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison

Comparison endsWith(string $field, mixed $value)

Parameters

string $field
mixed $value

Return Value

Comparison