Methods

Constructor

__construct(array $predicates, string $defaultCombination) 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::__construct()

Parameters

$predicates

nullarray

$defaultCombination

string

Overloading

__get(string $name) : \Zend\Db\Sql\Predicate\Predicate

Overloads "or", "and", "nest", and "unnest"

Parameters

$name

string

Returns

Add predicate to set

addPredicate(\Zend\Db\Sql\Predicate\PredicateInterface $predicate, string $combination) : \Zend\Db\Sql\Predicate\PredicateSet
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::addPredicate()

Parameters

$combination

string

Returns

Add predicate using AND operator

andPredicate(\Zend\Db\Sql\Predicate\PredicateInterface $predicate) : \Zend\Db\Sql\Predicate\PredicateSet
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::andPredicate()

Parameters

Returns

Create "between" predicate

between(string $identifier, int | float | string $minValue, int | float | string $maxValue) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Between predicate

Parameters

$identifier

string

$minValue

intfloatstring

$maxValue

intfloatstring

Returns

Get count of attached predicates

count() : int
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::count()

Returns

int

Create "Equal To" predicate

equalTo(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Create an expression, with parameter placeholders

expression($expression, $parameters) : \Zend\Db\Sql\Predicate\$this

Parameters

$expression

$parameters

Returns

\Zend\Db\Sql\Predicate\$this

Get predicate parts for where statement

getExpressionData() : array
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::getExpressionData()

Returns

array

Return the predicates

getPredicates() : \Zend\Db\Sql\Predicate\PredicateInterface[]
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::getPredicates()

Returns

Create "Greater Than" predicate

greaterThan(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Create "Greater Than Or Equal To" predicate

greaterThanOrEqualTo(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Create "in" predicate

in(string $identifier, array | \Zend\Db\Sql\Select $valueSet) : \Zend\Db\Sql\Predicate\Predicate

Utilizes In predicate

Parameters

$identifier

string

$valueSet

array\Zend\Db\Sql\Select

Returns

Create "IS NOT NULL" predicate

isNotNull(string $identifier) : \Zend\Db\Sql\Predicate\Predicate

Utilizes IsNotNull predicate

Parameters

$identifier

string

Returns

Create "IS NULL" predicate

isNull(string $identifier) : \Zend\Db\Sql\Predicate\Predicate

Utilizes IsNull predicate

Parameters

$identifier

string

Returns

Create "Less Than" predicate

lessThan(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Create "Less Than Or Equal To" predicate

lessThanOrEqualTo(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Create "Literal" predicate

literal(string $literal) : \Zend\Db\Sql\Predicate\Predicate

Literal predicate, for parameters, use expression()

Parameters

$literal

string

Returns

Begin nesting predicates

nest() : \Zend\Db\Sql\Predicate\Predicate

Create "Not Equal To" predicate

notEqualTo(int | float | bool | string $left, int | float | bool | string $right, string $leftType, string $rightType) : \Zend\Db\Sql\Predicate\Predicate

Utilizes Operator predicate

Parameters

$left

intfloatboolstring

$right

intfloatboolstring

$leftType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_IDENTIFIER {@see allowedTypes}

$rightType

string

TYPE_IDENTIFIER or TYPE_VALUE by default TYPE_VALUE {@see allowedTypes}

Returns

Add predicate using OR operator

orPredicate(\Zend\Db\Sql\Predicate\PredicateInterface $predicate) : \Zend\Db\Sql\Predicate\PredicateSet
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::orPredicate()

Parameters

Returns

Indicate what predicate will be unnested

setUnnest(\Zend\Db\Sql\Predicate\Predicate $predicate) : void

Parameters

Indicate end of nested predicate

unnest() : \Zend\Db\Sql\Predicate\Predicate

 Properties

 

$AND

$AND : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$NEST

$NEST : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$OR

$OR : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$UNNEST

$UNNEST : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$and

$and : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$or

$or : \Zend\Db\Sql\Predicate\Predicate

magic
property
 

$defaultCombination

$defaultCombination 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::$$defaultCombination
 

$nextPredicateCombineOperator

$nextPredicateCombineOperator 

 

$predicates

$predicates 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::$$predicates
 

$unnest

$unnest 

 Constants

 

COMBINED_BY_AND

COMBINED_BY_AND 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::COMBINED_BY_AND
 

COMBINED_BY_OR

COMBINED_BY_OR 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::COMBINED_BY_OR
 

OP_AND

OP_AND 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::OP_AND
 

OP_OR

OP_OR 
Inherited

inherited_from \Zend\Db\Sql\Predicate\PredicateSet::OP_OR