Trait CriterionTrait
Trait for a generic criterion.
Direct Known Users
Indirect Known Users
Methods summary
protected
get_column_name( void )
Returns the criterion's column name, or if it is empty the criterion's identifier.
public
parse_query_string( ICanBoogie\Facets\QueryString
$q
)
: ICanBoogie\Facets\QueryString
Parses the query string and marks words matched by the criterion.
public
alter_conditions( array & $conditions
, array $modifiers
)
Unset the condition if the modifier is null
or an empty string.
public
alter_query_with_value( ICanBoogie\ActiveRecord\Query $query
, mixed $value
)
: ICanBoogie\ActiveRecord\Query
Alters the query according to the specified value.
public
alter_query_with_order( ICanBoogie\ActiveRecord\Query $query
, integer $order_direction
)
: ICanBoogie\ActiveRecord\Query
Alters the query with an order.
public
humanize( mixed $value
)
: string|ICanBoogie\Facets\IntervalCriterionValue
Returns a human readable value.