ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arHavingCollection.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 .= ' HAVING ';
31 $havings = $this->getHavings();
32 $last = end($havings);
33 foreach ($havings as $having) {
34 $return .= $having->asSQLStatement($this->getAr(), $db);
35 if ($having !== $last) {
36 $return .= ' ' . $having->getGlue() . ' ';
37 }
38 }
39 }
40
41 return $return;
42 }
43
47 public function getHavings(): array
48 {
49 return $this->statements;
50 }
51}
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.