ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ 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
{
13
17
public
function
asSQLStatement
()
18
{
19
$return =
''
;
20
if
($this->
hasStatements
()) {
21
$return .=
' WHERE '
;
22
$wheres = $this->
getWheres
();
23
$last = end($wheres);
24
foreach
($wheres as $arWhere) {
25
$return .= $arWhere->asSQLStatement($this->
getAr
());
26
if
($arWhere != $last) {
27
$return .=
' '
. $arWhere->getLink() .
' '
;
28
}
29
}
30
}
31
32
return
$return;
33
}
34
35
39
public
function
getWheres
()
40
{
41
return
$this->statements
;
42
}
43
}
arStatementCollection\$statements
$statements
Definition:
class.arStatementCollection.php:20
arWhereCollection
Class arWhereCollection.
Definition:
class.arWhereCollection.php:11
arStatementCollection
Class arStatementCollection.
Definition:
class.arStatementCollection.php:10
arStatementCollection\getAr
getAr()
Definition:
class.arStatementCollection.php:91
arWhereCollection\asSQLStatement
asSQLStatement()
Definition:
class.arWhereCollection.php:17
arWhereCollection\getWheres
getWheres()
Definition:
class.arWhereCollection.php:39
arStatementCollection\hasStatements
hasStatements()
Definition:
class.arStatementCollection.php:39
Services
ActiveRecord
Connector
Where
class.arWhereCollection.php
Generated on Sat Jan 18 2025 19:01:25 for ILIAS by
1.8.13 (using
Doxyfile
)