ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arConcatCollection.php
Go to the documentation of this file.
1<?php
2
25{
26 public function asSQLStatement(ilDBInterface $db): string
27 {
28 $return = '';
29 if ($this->hasStatements()) {
30 $return = ', ';
31 $concats = $this->getConcats();
32 foreach ($concats as $concat) {
33 $return .= $concat->asSQLStatement($this->getAr(), $db);
34 if ($concat !== end($concats)) {
35 $return .= ', ';
36 }
37 }
38 }
39
40 return $return;
41 }
42
46 public function getConcats(): array
47 {
48 return $this->statements;
49 }
50}
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.