ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.arWhereCollection.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3require_once('class.arWhere.php');
4
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?>
Class arStatementCollection.
Class arWhereCollection.