ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
arHavingCollection Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

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

Public Member Functions

 asSQLStatement (ilDBInterface $db)
 
 getHavings ()
 
- Public Member Functions inherited from arStatementCollection
 add (arStatement $arStatement)
 
 hasStatements ()
 
 asSQLStatement (ilDBInterface $db)
 
 setAr (ActiveRecord $activeRecord)
 
 getAr ()
 
 setStatements (array $statements)
 
 getStatements ()
 

Additional Inherited Members

- Protected Attributes inherited from arStatementCollection
array $statements = []
 
ActiveRecord $ar = null
 
- Static Protected Attributes inherited from arStatementCollection
static array $cache = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 24 of file class.arHavingCollection.php.

Member Function Documentation

◆ asSQLStatement()

arHavingCollection::asSQLStatement ( ilDBInterface  $db)

Reimplemented from arStatementCollection.

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

26 : string
27 {
28 $return = '';
29 if ($this->hasStatements()) {
30 $return .= ' HAVING ';
31 $havings = $this->getHavings();
32 $last = end($havings);
33 foreach ($havings as $having) {
34 $return .= $having->asSQLStatement($this->getAr(), $db);
35 if ($having !== $last) {
36 $return .= ' ' . $having->getGlue() . ' ';
37 }
38 }
39 }
40
41 return $return;
42 }

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

+ Here is the call graph for this function:

◆ getHavings()

arHavingCollection::getHavings ( )
Returns
arHaving[]

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

47 : array
48 {
49 return $this->statements;
50 }

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: