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