ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
arOrderCollection Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for arOrderCollection:
+ Collaboration diagram for arOrderCollection:

Public Member Functions

 asSQLStatement (ilDBInterface $db)
 
 getOrders ()
 
- Public Member Functions inherited from arStatementCollection
 add (arStatement $statement)
 
 hasStatements ()
 
 asSQLStatement (ilDBInterface $db)
 
 setAr (ActiveRecord $ar)
 
 getAr ()
 
 setStatements (array $statements)
 
 getStatements ()
 

Additional Inherited Members

- Protected Attributes inherited from arStatementCollection
array $statements = []
 
ActiveRecord $ar = null
 
- Static Protected Attributes inherited from arStatementCollection
static array $cache = []
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class arOrderCollection

Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Version
2.0.7

Definition at line 24 of file class.arOrderCollection.php.

Member Function Documentation

◆ asSQLStatement()

arOrderCollection::asSQLStatement ( ilDBInterface  $db)

Definition at line 26 of file class.arOrderCollection.php.

References arStatementCollection\getAr(), getOrders(), and arStatementCollection\hasStatements().

26  : 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  }
+ Here is the call graph for this function:

◆ getOrders()

arOrderCollection::getOrders ( )
Returns
arOrder[]

Definition at line 46 of file class.arOrderCollection.php.

References arStatementCollection\$statements.

Referenced by asSQLStatement().

46  : array
47  {
48  return $this->statements;
49  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: