Jet\DataModel_Query_Having
The class represents the HAVING part of the query. It is a subentity of the class Jet\DataModel_Query.
Overview of methods
| Method | Meaning of |
|---|---|
| public __construct( DataModel_Query $query, array $having=[] ) |
Parameters:
|
| public addExpression( DataModel_Query_Select_Item $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_Having $sub_expressions ) : void |
Adds subexpressions to the definition. |
| public attach( DataModel_Query_Having $part ) : void |
It will attach a different definition of HAVING. |
| public current( ) : DataModel_Query_Having_Expression|string |
The class is an iterator - the definition can be traversed as an array. |
| public key( ) : string |
Třída je iterátor - definici je možné procházet jako pole. |
| public next( ) : DataModel_Query_Having_Expression|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. |