ZenMagick 0.9.10


zenmagick.store.shared.mvc.resultlist.sorter\ZMOrderSorter
mvc\resultlist\sorter\ZMOrderSorter.php at line 31

Class ZMOrderSorter

ZMObject
└─ZMResultListSorter
└─ZMOrderSorter
All Implemented Interfaces:
org.zenmagick.core.services.database\ZMSQLAware

public class ZMOrderSorter
extends ZMResultListSorter

Order sorter.

Author:
DerManoMann

Fields inherited from org.zenmagick.mvc.resultlist\ZMResultListSorter
descending_, id_, name_, sortId_
Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(string id, string name, string sortId)

Create new instance.

array

getOptions()

Returns one or more ZMSortOptions supported by this sorter.

void

getQueryDetails(mixed method, mixed args)

{@inheritDoc}

boolean

isActive()

Returns true if this sorter is currently active.

array

sort(array list)

Sort the given list according to this sorters criteria.

Methods inherited from org.zenmagick.mvc.resultlist\ZMResultListSorter
__construct, getId, getName, getOptions, getSortId, isActive, isDescending, setDescending, setId, setName, setSortId, sort
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\resultlist\sorter\ZMOrderSorter.php at line 43

__construct

public void __construct(string id, string name, string sortId)

Create new instance.

Parameters:
id - Optional sorter id.
name - Optional sorter name.
sortId - Optional sort id.

mvc\resultlist\sorter\ZMOrderSorter.php at line 94

getOptions

public array getOptions()

Returns one or more ZMSortOptions supported by this sorter.

Returns:
An array of one or more ZMSortOption instances.

mvc\resultlist\sorter\ZMOrderSorter.php at line 107

getQueryDetails

public void getQueryDetails(mixed method, mixed args)


mvc\resultlist\sorter\ZMOrderSorter.php at line 67

isActive

public boolean isActive()

Returns true if this sorter is currently active.

This translates into: one of the supported sort options is active.

Returns:
true if the sorter is active, false if not.

mvc\resultlist\sorter\ZMOrderSorter.php at line 75

sort

public array sort(array list)

Sort the given list according to this sorters criteria.

Parameters:
list - The list to sort.
Returns:
The sorted list.

ZenMagick 0.9.10