ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.arOrderCollection.php
Go to the documentation of this file.
1<?php
2require_once(dirname(__FILE__) . '/../Statement/class.arStatementCollection.php');
3require_once('class.arOrder.php');
4
12{
13
17 public function asSQLStatement()
18 {
19 $return = '';
20 if ($this->hasStatements()) {
21 $return .= ' ORDER BY ';
22 foreach ($this->getOrders() as $order) {
23 $return .= $order->asSQLStatement($this->getAr());
24 if ($order != end($this->getOrders())) {
25 $return .= ', ';
26 }
27 }
28 }
29
30 return $return;
31 }
32
33
37 public function getOrders()
38 {
39 return $this->statements;
40 }
41}
An exception for terminatinating execution or to throw for unit testing.
Class arOrderCollection.
Class arStatementCollection.