ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.arOrderCollection.php
Go to the documentation of this file.
1 <?php
2 require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3 require_once('class.arOrder.php');
4 
12 
16  public function asSQLStatement() {
17  $return = '';
18  if ($this->hasStatements()) {
19  $return .= ' ORDER BY ';
20  foreach ($this->getOrders() as $order) {
21  $return .= $order->asSQLStatement($this->getAr());
22  if ($order != end($this->getOrders())) {
23  $return .= ', ';
24  }
25  }
26  }
27 
28  return $return;
29  }
30 
31 
35  public function getOrders() {
36  return $this->statements;
37  }
38 }
39 
40 ?>