ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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{
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}
An exception for terminatinating execution or to throw for unit testing.
Class arStatementCollection.
Class arWhereCollection.