ZenMagick 0.9.6


org.zenmagick.rp.resultlist.sorter.ZMOrderSorter

Class ZMOrderSorter

ZMObject
|
+--ZMResultListSorter
|
+--ZMOrderSorter
All Implemented Interfaces:
ZMSQLAware

public class ZMOrderSorter
extends ZMResultListSorter

Order sorter.

Author:
DerManoMann
Version:
$Id: ZMOrderSorter.php 2157 2009-04-14 23:31:34Z dermanomann $

Fields inherited from org.zenmagick.rp.resultlist.ZMResultListSorter
descending_, id_, name_, sortId_
Fields inherited from org.zenmagick.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.rp.resultlist.ZMResultListSorter
getId, getName, getOptions, getSortId, isActive, isDescending, setDescending, setId, setName, setSortId, sort
Methods inherited from org.zenmagick.ZMObject
attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton

Constructor Detail

ZMOrderSorter

public ZMOrderSorter()

Create new instance. /


Method Detail

getOptions

public array getOptions()

Returns one or more ZMSortOptions supported by this sorter.

Returns:
An array of one or more ZMSortOption instances.

getQueryDetails

public void getQueryDetails(mixed method, mixed args)

/


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.

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