ILIAS  release_5-2 Revision v5.2.25-18-g3f80b82851
arOrderCollection Class Reference

Class arOrderCollection. More...

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

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from arStatementCollection
 $statements = array()
 
 $ar
 
- Static Protected Attributes inherited from arStatementCollection
static $cache = array()
 

Detailed Description

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 11 of file class.arOrderCollection.php.

Member Function Documentation

◆ asSQLStatement()

arOrderCollection::asSQLStatement ( )
Returns
string

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

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

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

◆ getOrders()

arOrderCollection::getOrders ( )
Returns
arOrder[]

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

References arStatementCollection\$statements.

Referenced by asSQLStatement().

+ Here is the caller graph for this function:

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