ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
arHavingCollection Class Reference

Class arWhereCollection. More...

+ Inheritance diagram for arHavingCollection:
+ Collaboration diagram for arHavingCollection:

Public Member Functions

 asSQLStatement ()
 
 getHavings ()
 
- Public Member Functions inherited from arStatementCollection
 add (arStatement $statement)
 
 hasStatements ()
 
 asSQLStatement ()
 
 setAr ($ar)
 
 getAr ()
 
 setStatements ($statements)
 
 getStatements ()
 

Additional Inherited Members

- Protected Attributes inherited from arStatementCollection
 $statements = array()
 
 $ar
 
- Static Protected Attributes inherited from arStatementCollection
static $cache = array()
 

Detailed Description

Class arWhereCollection.

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 11 of file class.arHavingCollection.php.

Member Function Documentation

◆ asSQLStatement()

arHavingCollection::asSQLStatement ( )
Returns
string

Reimplemented from arStatementCollection.

Definition at line 17 of file class.arHavingCollection.php.

18 {
19 $return = '';
20 if ($this->hasStatements()) {
21 $return .= ' HAVING ';
22 $wheres = $this->getHavings();
23 $last = end($wheres);
24 foreach ($wheres as $arWhere) {
25 $return .= $arWhere->asSQLStatement($this->getAr());
26 if ($arWhere != $last) {
27 $return .= ' ' . $arWhere->getGlue() . ' ';
28 }
29 }
30 }
31
32 return $return;
33 }

References arStatementCollection\getAr(), getHavings(), and arStatementCollection\hasStatements().

+ Here is the call graph for this function:

◆ getHavings()

arHavingCollection::getHavings ( )
Returns
arHaving[]

Definition at line 39 of file class.arHavingCollection.php.

References arStatementCollection\$statements.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: