ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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 ()
 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

arOrderCollection::asSQLStatement ( )
Returns
string

Reimplemented from arStatementCollection.

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

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

{
$return = '';
if ($this->hasStatements()) {
$return .= ' ORDER BY ';
foreach ($this->getOrders() as $order) {
$return .= $order->asSQLStatement($this->getAr());
if ($order != end($this->getOrders())) {
$return .= ', ';
}
}
}
return $return;
}

+ Here is the call graph for this function:

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: