ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
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
11
class
arSelectCollection
extends
arStatementCollection
{
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
?>
arStatementCollection\$statements
$statements
Definition:
class.arStatementCollection.php:19
arStatementCollection
Class arStatementCollection.
Definition:
class.arStatementCollection.php:10
arSelectCollection\asSQLStatement
asSQLStatement()
Definition:
class.arSelectCollection.php:16
arStatementCollection\getAr
getAr()
Definition:
class.arStatementCollection.php:85
arSelectCollection\getSelects
getSelects()
Definition:
class.arSelectCollection.php:35
php
arSelectCollection
Class arSelectCollection.
Definition:
class.arSelectCollection.php:11
arStatementCollection\hasStatements
hasStatements()
Definition:
class.arStatementCollection.php:37
Services
ActiveRecord
Connector
Select
class.arSelectCollection.php
Generated on Fri Feb 21 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)