ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ()
 
 asORACLEStatement ()
 
 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

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

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

16  {
17  $return = '';
18  if ($this->hasStatements()) {
19  $return .= ' HAVING ';
20  $wheres = $this->getHavings();
21  $last = end($wheres);
22  foreach ($wheres as $arWhere) {
23  $return .= $arWhere->asSQLStatement($this->getAr());
24  if ($arWhere != $last) {
25  $return .= ' ' . $arWhere->getGlue() . ' ';
26  }
27  }
28  }
29 
30  return $return;
31  }
+ Here is the call graph for this function:

◆ getHavings()

arHavingCollection::getHavings ( )
Returns
arHaving[]

Definition at line 37 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: