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

Public Member Functions

 asSQLStatement (ilDBInterface $db)
 
 getConcats ()
 
- 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 arConcatCollection

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

Member Function Documentation

◆ asSQLStatement()

arConcatCollection::asSQLStatement ( ilDBInterface  $db)

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

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

26  : string
27  {
28  $return = '';
29  if ($this->hasStatements()) {
30  $return = ', ';
31  $concats = $this->getConcats();
32  foreach ($concats as $concat) {
33  $return .= $concat->asSQLStatement($this->getAr(), $db);
34  if ($concat !== end($concats)) {
35  $return .= ', ';
36  }
37  }
38  }
39 
40  return $return;
41  }
+ Here is the call graph for this function:

◆ getConcats()

arConcatCollection::getConcats ( )
Returns
arConcat[]

Definition at line 46 of file class.arConcatCollection.php.

References arStatementCollection\$statements.

Referenced by asSQLStatement().

46  : array
47  {
48  return $this->statements;
49  }
+ Here is the caller graph for this function:

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