ZMObject
└─ZMResultListSorter
└─ZMOrderSorter
public class ZMOrderSorter
extends ZMResultListSorter
| Fields inherited from org.zenmagick.mvc.resultlist.ZMResultListSorter | |
|---|---|
| descending_, id_, name_, sortId_ | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
Create new instance. |
|
| Method Summary | |
|---|---|
| array | 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 | |
|---|---|
| getId, getName, getOptions, getSortId, isActive, isDescending, setDescending, setId, setName, setSortId, sort | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMOrderSorter()
Create new instance.
public array getOptions()
Returns one or more ZMSortOptions supported by this sorter.
ZMSortOption instances.public void getQueryDetails(mixed method, mixed args)
public boolean isActive()
Returns true if this sorter is currently active.
This translates into: one of the supported sort options is active.
true if the sorter is active, false if not.public array sort(array list)
Sort the given list according to this sorters criteria.
Order sorter.