create criteria from array of filters
static
create
($simple_filters, [$properties = null])
-
$simple_filters
-
$properties
Constructor Method
__construct
()
Adds a new Expression to the Criteria
add
($expression, [$operator = self::AND_OPERATOR])
-
$expression: TExpression object
-
$operator: Logic Operator Constant
Returns the final expression
dump
([$prepared = FALSE])
-
$prepared: Return a prepared expression
Redefinition of:
- TExpression::dump()
Return if case insensitive is turned on
getCaseInsensitive
()
Return the prepared vars
getPreparedVars
()
Return a Criteria property
getProperty
($property)
-
$property: Name of the property (LIMIT, OFFSET, ORDER)
Return if criteria is empty
isEmpty
()
reset criteria properties
resetProperties
()
Force case insensitive searches
setCaseInsensitive
($value)
Set properties form array
setProperties
($properties)
-
$properties: array of properties
Define a Criteria property
setProperty
($property, $value)
-
$property: Name of the property (limit, offset, order, direction)
-
$value: Value for the property
When clonning criteria
__clone
()
Inherited Methods
Inherited From TExpression
TExpression::dump()