ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.arOrderCollection.php
Go to the documentation of this file.
1<?php
2
25{
26 public function asSQLStatement(ilDBInterface $db): string
27 {
28 $return = '';
29 if ($this->hasStatements()) {
30 $return .= ' ORDER BY ';
31 $orders = $this->getOrders();
32 foreach ($orders as $order) {
33 $return .= $order->asSQLStatement($this->getAr(), $db);
34 if ($order !== end($orders)) {
35 $return .= ', ';
36 }
37 }
38 }
39
40 return $return;
41 }
42
46 public function getOrders(): array
47 {
48 return $this->statements;
49 }
50}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
asSQLStatement(ilDBInterface $db)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface ilDBInterface.