ZenMagick 0.9.8


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

Class ZMProductSorter

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

public class ZMProductSorter
extends ZMResultListSorter

Product sorter.

Author:
DerManoMann
Version:
$Id: ZMProductSorter.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

ZMProductSorter()

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

ZMProductSorter

public ZMProductSorter()

Create new instance.


Method Detail

\store\mvc\resultlist\sorter\ZMProductSorter.php at line 122

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

getQueryDetails

public void getQueryDetails(mixed method, mixed args)


\store\mvc\resultlist\sorter\ZMProductSorter.php at line 95

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

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