ZenMagick 0.9.8


org.zenmagick.store.mvc.resultlist.sorter.ZMOrderSorter
\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 32

Class ZMOrderSorter

ZMObject
└─ZMResultListSorter
└─ZMOrderSorter
All Implemented Interfaces:
ZMSQLAware

public class ZMOrderSorter
extends ZMResultListSorter

Order sorter.

Author:
DerManoMann
Version:
$Id: ZMOrderSorter.php 2694 2009-12-03 22:32:18Z dermanomann $

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

ZMOrderSorter()

Create new instance.

Method Summary
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
getId, getName, getOptions, getSortId, isActive, isDescending, setDescending, setId, setName, setSortId, sort
Methods inherited from org.zenmagick.core.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 54

ZMOrderSorter

public ZMOrderSorter()

Create new instance.


Method Detail

\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 105

getOptions

public array getOptions()

Returns one or more ZMSortOptions supported by this sorter.

Returns:
An array of one or more ZMSortOption instances.

\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 118

getQueryDetails

public void getQueryDetails(mixed method, mixed args)


\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 78

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.

\store\mvc\resultlist\sorter\ZMOrderSorter.php at line 86

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.8