Class Order
Order
Available modes:
- asc
to order in ascending (A-Z / 0-9) order.
- desc
to order in descending (Z-A / 9-0) order.
- rand
to order in a random fashion.
- values
to order by a defined array of properties.
- custom
to order by a custom SQL string.
- Charcoal\Source\Order implements Charcoal\Source\OrderInterface
Direct known subclasses
Charcoal\Source\Database\DatabaseOrder
public
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
array
|
|
public
|
|
public
string
|
|
public
|
|
public
boolean
|
|
protected
array
|
string |
MODE_ASC
|
#
'asc'
|
string |
MODE_DESC
|
#
'desc'
|
string |
MODE_RANDOM
|
#
'rand'
|
string |
MODE_VALUES
|
#
'values'
|
string |
MODE_CUSTOM
|
#
'custom'
|
protected
string
|
$property
The model property (SQL column). |
|
protected
string
|
$mode
The sort mode. |
|
protected
array
|
$values
The values when self::$mode is self::MODE_VALUES. |
|
protected
string
|
$string
Raw SQL clause when self::$mode is self::MODE_CUSTOM. |
|
protected
boolean
|
$active
Whether the order is active. |
#
true
|