ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
class.arHavingCollection.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3 require_once('class.arHaving.php');
4 
12 {
13 
17  public function asSQLStatement()
18  {
19  $return = '';
20  if ($this->hasStatements()) {
21  $return .= ' HAVING ';
22  $wheres = $this->getHavings();
23  $last = end($wheres);
24  foreach ($wheres as $arWhere) {
25  $return .= $arWhere->asSQLStatement($this->getAr());
26  if ($arWhere != $last) {
27  $return .= ' ' . $arWhere->getGlue() . ' ';
28  }
29  }
30  }
31 
32  return $return;
33  }
34 
35 
39  public function getHavings()
40  {
41  return $this->statements;
42  }
43 }
Class arStatementCollection.
Class arWhereCollection.