Combines a set of criteria using AND or OR.

author Jorgen Evens
package WebLab
subpackage Data

 Methods

Add a criteria to the end of the chain using the AND keyword.

addAnd(\WebLab_Data_Criteria $criteria) : \WebLab_Data_CriteriaChain

Parameters

Exceptions

\WebLab_Data_Exception If neither a criteria nor a criteriachain is supplied as $criteria.

Returns

Add a criteria to the end of the chain using the OR keyword.

addOr(\WebLab_Data_Criteria $criteria) : \WebLab_Data_CriteriaChain

Parameters

Exceptions

\WebLab_Data_Exception If neither a criteria nor a criteriachain is supplied as $criteria.

Returns

Convert the chain to it's text representation using the adapter specifications.

get(object $adapterSpecs) : string

Parameters

$adapterSpecs

object

Returns

string

Retrieves if there are criteria in this chain.

hasCriteria() : boolean

Returns

booleanAre there criteria in this chain?

 Properties

 

$_criteria : \WebLab_Data_Criteria[]