DBQueryOrdered Class Reference
[Model]
An ordered query. More...
Inheritance diagram for
DBQueryOrdered:
Public Member Functions |
|
add_order ($column, $direction=self::ASC) | |
Add order. |
|
get_orders () | |
Returns orders. |
|
Public Attributes |
|
const | ASC = 'ASC' |
const | DESC = 'DESC' |
Protected Attributes |
|
$orders = array() |
Detailed Description
An ordered query.
Definition at line 10 of file dbquery.ordered.cls.php.
Member Function Documentation
DBQueryOrdered::add_order | ( | $ | column, | |
$ | direction =
self::ASC |
|||
) |
Add order.
Use DBQueryOrdered::CLEAR as column to clear all orders
- Parameters:
-
string $column string $direction Either DBQueryOrdered::ASC or DBQueryOrdered::DESC
Definition at line 27 of file dbquery.ordered.cls.php.
DBQueryOrdered::get_orders | ( | ) |
Returns orders.
- Returns:
- array Array of associative arrays of form "Field => Direction"
Definition at line 45 of file dbquery.ordered.cls.php.
Member Data Documentation
DBQueryOrdered::$orders = array()
[protected] |
Definition at line 19 of file dbquery.ordered.cls.php.
const DBQueryOrdered::ASC = 'ASC' |
Definition at line 11 of file dbquery.ordered.cls.php.
const DBQueryOrdered::DESC = 'DESC' |
Definition at line 12 of file dbquery.ordered.cls.php.
The documentation for this class was generated from the following file:
- gyro/core/model/base/queries/dbquery.ordered.cls.php