ILIAS  release_5-0 Revision 5.0.0-1144-gc4397b1f870
All Data Structures Namespaces Files Functions Variables Modules Pages
arSelectCollection Class Reference

Class arSelectCollection. More...

+ Inheritance diagram for arSelectCollection:
+ Collaboration diagram for arSelectCollection:

Public Member Functions

 asSQLStatement ()
 
 getSelects ()
 
- 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 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 11 of file class.arSelectCollection.php.

Member Function Documentation

◆ asSQLStatement()

arSelectCollection::asSQLStatement ( )
Returns
string

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

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

16  {
17  $return = 'SELECT ';
18  if ($this->hasStatements()) {
19  foreach ($this->getSelects() as $select) {
20  $return .= $select->asSQLStatement($this->getAr());
21  if ($select != end($this->getSelects())) {
22  $return .= ', ';
23  }
24  }
25  }
26 
27 // $return .= ' FROM ' . $this->getAr()->getConnectorContainerName();
28 
29  return $return;
30  }
+ Here is the call graph for this function:

◆ getSelects()

arSelectCollection::getSelects ( )
Returns
arSelect[]

Definition at line 36 of file class.arSelectCollection.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: