PHP Class JamesMoss\Flywheel\Predicate

Builds an executes a query whichs searches and sorts documents from a repository.
Show file Open project: jamesmoss/flywheel Class Usage Examples

Protected Properties

Property Type Description
$operators
$predicates

Public Methods

Method Description
andWhere ( $field, $operator = null, $value = null )
getAll ( )
orWhere ( $field, $operator = null, $value = null )
where ( $field, $operator = null, $value = null )

Protected Methods

Method Description
addPredicate ( $type, $field, $operator = null, $value = null )

Method Details

addPredicate() protected method

protected addPredicate ( $type, $field, $operator = null, $value = null )

andWhere() public method

public andWhere ( $field, $operator = null, $value = null )

getAll() public method

public getAll ( )

orWhere() public method

public orWhere ( $field, $operator = null, $value = null )

where() public method

public where ( $field, $operator = null, $value = null )

Property Details

$operators protected property

protected $operators

$predicates protected property

protected $predicates