ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
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): string => $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...