ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.arSelectCollection.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3 require_once('class.arSelect.php');
4 
12 
16  public function asSQLStatement() {
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  }
31 
32 
36  public function getSelects() {
37  return $this->statements;
38  }
39 }
40 
41 ?>