ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
class.arSelectCollection.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3require_once('class.arSelect.php');
4
12
16 public function asSQLStatement() {
17 $return = 'SELECT ';
18 if ($this->hasStatements()) {
19 $activeRecord = $this->getAr();
20 $selectSQLs = array_map(function($select) use ($activeRecord) {
21 return $select->asSQLStatement($activeRecord);
22 }, $this->getSelects());
23 $return .= join(', ', $selectSQLs);
24 }
25
26// $return .= ' FROM ' . $this->getAr()->getConnectorContainerName();
27
28 return $return;
29 }
30
31
35 public function getSelects() {
36 return $this->statements;
37 }
38}
39
40?>
An exception for terminatinating execution or to throw for unit testing.
Class arSelectCollection.
Class arStatementCollection.