ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
class.arSelectCollection.php
Go to the documentation of this file.
1
<?php
2
24
class
arSelectCollection
extends
arStatementCollection
25
{
26
public
function
asSQLStatement
(
ilDBInterface
$db): string
27
{
28
$return =
'SELECT '
;
29
if
($this->
hasStatements
()) {
30
$activeRecord = $this->
getAr
();
31
$selectSQLs =
array_map
(fn($select) => $select->asSQLStatement($activeRecord, $db), $this->
getSelects
());
32
$return .= implode(
', '
, $selectSQLs);
33
}
34
35
return
$return;
36
}
37
41
public
function
getSelects
(): array
42
{
43
return
$this->statements
;
44
}
45
}
arStatementCollection
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.arStatementCollection.php:24
array_map
arStatementCollection\getAr
getAr()
Definition:
class.arStatementCollection.php:65
arSelectCollection\asSQLStatement
asSQLStatement(ilDBInterface $db)
Definition:
class.arSelectCollection.php:26
ilDBInterface
arSelectCollection\getSelects
getSelects()
Definition:
class.arSelectCollection.php:41
arStatementCollection\$statements
array $statements
Definition:
class.arStatementCollection.php:33
arSelectCollection
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.arSelectCollection.php:24
arStatementCollection\hasStatements
hasStatements()
Definition:
class.arStatementCollection.php:41
components
ILIAS
ActiveRecord
Connector
Select
class.arSelectCollection.php
Generated on Mon Sep 1 2025 23:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)