Class CriterionList
A list of criteria.
- ICanBoogie\Facets\CriterionList implements IteratorAggregate, ArrayAccess, ICanBoogie\ToArray
Methods summary
public
__construct( array $criterion_list
= [] )
Initializes the ICanBoogie\Facets\CriterionList::$criterion_list
property.
public
parse_query_string( ICanBoogie\Facets\QueryString
|string $q
)
: ICanBoogie\Facets\QueryString
Parses the query string and marks words matched by criteria.
public
alter_conditions( array & $conditions
, array $modifiers
)
: array
Alters the conditions according to the specified modifiers.
public
alter_query( ICanBoogie\ActiveRecord\Query & $query
)
: ICanBoogie\Facets\CriterionList
Alters the query with initial requirements.
public
alter_query_with_conditions( ICanBoogie\ActiveRecord\Query & $query
, array $values
)
: ICanBoogie\Facets\CriterionList
Alters the query with the criteria matching the values.
public
alter_query_with_order( ICanBoogie\ActiveRecord\Query & $query
, string $criterion_id
, integer $order_direction
= 1 )
: ICanBoogie\Facets\CriterionList
Alters the query with a criterion and an order direction.
public
alter_records( array & $records
)
: ICanBoogie\Facets\CriterionList
Alters the records with the criteria.