ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 
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 ?>