Jet\DataModel_Query_Where

The class represents the WHERE part of the query. It is a subentity of class Jet\DataModel_Query.

Overview of methods

Method Meaning of
public __construct(
DataModel_Query $query,
array $where=[]
)
Parameters:
  • $query
    Definition of the query to which the WHERE part belongs.
  • $where
    WHERE part of the query in raw form - as an array.
public addExpression(
DataModel_Definition_Property $property_definition,
string $operator,
mixed $value
) : void
Adds an expression (i.e. a specific condition) to the definition.
public toString(
) : string
For debug mode, the definition can be converted to a string.
public getIsEmpty(
) : bool
Indicates whether the definition is empty.
public addAND(
) : void
Adds the AND operator to the definition
public addOR(
) : void
Adds the OR operator to the definition
public addSubExpressions(
DataModel_Query_Where $sub_expressions
) : void
Adds subexpressions to the definition.
public attach(
DataModel_Query_Where $part
) : void
Connects another WHERE definition.
public current(
) : DataModel_Query_Where_Expression|
DataModel_Query_Where|
string
The class is an iterator - the definition can be traversed as an array.
public key(
) : string
The class is an iterator - the definition can be traversed as an array.
public next(
) : DataModel_Query_Where_Expression|
DataModel_Query_Where|
string|
bool
The class is an iterator - the definition can be traversed as an array.
public rewind(
) : void
The class is an iterator - the definition can be traversed as an array.
public valid(
) : bool
The class is an iterator - the definition can be traversed as an array.
public count(
) : int
The class is an iterator - the definition can be traversed as an array.
Previous chapter
Jet\DataModel_Query_Select_Item_Expression
Next chapter
Jet\DataModel_Query_Where_Expression