ILIAS
trunk Revision v11.0_alpha-2645-g16283d3b3f8
◀ ilDoc Overview
class.arHavingCollection.php
Go to the documentation of this file.
1
<?php
2
24
class
arHavingCollection
extends
arStatementCollection
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
}
arStatementCollection
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.arStatementCollection.php:24
arHavingCollection
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.arHavingCollection.php:24
arStatementCollection\getAr
getAr()
Definition:
class.arStatementCollection.php:65
ilDBInterface
arStatementCollection\$statements
array $statements
Definition:
class.arStatementCollection.php:33
arHavingCollection\asSQLStatement
asSQLStatement(ilDBInterface $db)
Definition:
class.arHavingCollection.php:26
arHavingCollection\getHavings
getHavings()
Definition:
class.arHavingCollection.php:47
arStatementCollection\hasStatements
hasStatements()
Definition:
class.arStatementCollection.php:41
components
ILIAS
ActiveRecord
Connector
Having
class.arHavingCollection.php
Generated on Mon Sep 1 2025 23:01:52 for ILIAS by
1.8.13 (using
Doxyfile
)