ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arSelectCollection.php
Go to the documentation of this file.
1<?php
2
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}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
asSQLStatement(ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.