ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
arSelectCollection 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 arSelectCollection:
+ Collaboration diagram for arSelectCollection:

Public Member Functions

 asSQLStatement (ilDBInterface $db)
 
 getSelects ()
 
- 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 arSelectCollection

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.arSelectCollection.php.

Member Function Documentation

◆ asSQLStatement()

arSelectCollection::asSQLStatement ( ilDBInterface  $db)

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

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

26  : string
27  {
28  $return = 'SELECT ';
29  if ($this->hasStatements()) {
30  $activeRecord = $this->getAr();
31  $selectSQLs = array_map(fn($select) => $select->asSQLStatement($activeRecord, $db), $this->getSelects());
32  $return .= implode(', ', $selectSQLs);
33  }
34 
35  return $return;
36  }
+ Here is the call graph for this function:

◆ getSelects()

arSelectCollection::getSelects ( )
Returns
arSelect[]

Definition at line 41 of file class.arSelectCollection.php.

References arStatementCollection\$statements.

Referenced by asSQLStatement().

41  : array
42  {
43  return $this->statements;
44  }
+ Here is the caller graph for this function:

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