ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.arHavingCollection.php
Go to the documentation of this file.
1
<?
php
2
require_once(dirname(__FILE__) .
'/../Statement/class.arStatementCollection.php'
);
3
require_once(
'class.arHaving.php'
);
4
11
class
arHavingCollection
extends
arStatementCollection
{
12
16
public
function
asSQLStatement
() {
17
$return =
''
;
18
if
($this->
hasStatements
()) {
19
$return .=
' HAVING '
;
20
$wheres = $this->
getHavings
();
21
$last = end($wheres);
22
foreach
($wheres as $arWhere) {
23
$return .= $arWhere->asSQLStatement($this->
getAr
());
24
if
($arWhere != $last) {
25
$return .=
' '
. $arWhere->getGlue() .
' '
;
26
}
27
}
28
}
29
30
return
$return;
31
}
32
33
37
public
function
getHavings
() {
38
return
$this->statements
;
39
}
40
}
41
42
?>
arStatementCollection\$statements
$statements
Definition:
class.arStatementCollection.php:19
arStatementCollection
Class arStatementCollection.
Definition:
class.arStatementCollection.php:10
arHavingCollection
Class arWhereCollection.
Definition:
class.arHavingCollection.php:11
arStatementCollection\getAr
getAr()
Definition:
class.arStatementCollection.php:85
arHavingCollection\asSQLStatement
asSQLStatement()
Definition:
class.arHavingCollection.php:16
arHavingCollection\getHavings
getHavings()
Definition:
class.arHavingCollection.php:37
php
arStatementCollection\hasStatements
hasStatements()
Definition:
class.arStatementCollection.php:37
Services
ActiveRecord
Connector
Having
class.arHavingCollection.php
Generated on Fri Jan 17 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)