Methods

Constructor

__construct(array $predicates, string $defaultCombination) 

Parameters

$predicates

nullarray

$defaultCombination

string

Add predicate to set

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

Parameters

$combination

string

Returns

addPredicates()

addPredicates($predicates, $combination) 

Parameters

$predicates

$combination

Add predicate using AND operator

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

Get count of attached predicates

count() : int

Returns

int

Get predicate parts for where statement

getExpressionData() : array

Returns

array

Add predicate using OR operator

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

 Properties

 

$defaultCombination

$defaultCombination 

 

$predicates

$predicates 

 Constants

 

COMBINED_BY_AND

COMBINED_BY_AND 

 

COMBINED_BY_OR

COMBINED_BY_OR 

 

OP_AND

OP_AND 

 

OP_OR

OP_OR