ZenMagick 0.9.10


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

Class ZMProductSorter

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

public class ZMProductSorter
extends ZMResultListSorter

Product 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\ZMProductSorter.php at line 42

__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\ZMProductSorter.php at line 102

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\ZMProductSorter.php at line 115

getQueryDetails

public void getQueryDetails(mixed method, mixed args)


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

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\ZMProductSorter.php at line 83

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