ZenMagick 0.9.10


zenmagick.store.shared.mvc.resultlist.filter\ZMCategoryFilter
mvc\resultlist\filter\ZMCategoryFilter.php at line 30

Class ZMCategoryFilter

ZMObject
└─ZMResultListFilter
└─ZMCategoryFilter
All Implemented Interfaces:
org.zenmagick.core.services.database\ZMSQLAware

public class ZMCategoryFilter
extends ZMResultListFilter

Filter products by a single category.

Author:
DerManoMann

Fields inherited from org.zenmagick.mvc.resultlist\ZMResultListFilter
filterValues_, id_, list_, name_, value_
Fields inherited from org.zenmagick.core\ZMObject
properties_
Method Summary
void

__construct(string id, string name, string value)

Create new instance.

boolean

exclude(mixed obj)

Return true if the given object is to be excluded.

array

getOptions()

Returns a list of all available filter values.

protected void

getProductIds()

void

getQueryDetails(mixed method, mixed args)

{@inheritDoc}

Methods inherited from org.zenmagick.mvc.resultlist\ZMResultListFilter
__construct, exclude, filter, getId, getName, getOptions, getSelectedValues, getValue, isActive, isAvailable, isMultiSelection, setId, setName, setResultList, setValue
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\resultlist\filter\ZMCategoryFilter.php at line 37

__construct

public void __construct(string id, string name, string value)

Create new instance.

Parameters:
id - Optional filter id.
name - Optional filter name.
value - Optional filter value.

mvc\resultlist\filter\ZMCategoryFilter.php at line 65

exclude

public boolean exclude(mixed obj)

Return true if the given object is to be excluded.

Parameters:
obj - The object to examine.
Returns:
true if the object is to be excluded, false if not.

mvc\resultlist\filter\ZMCategoryFilter.php at line 75

getOptions

public array getOptions()

Returns a list of all available filter values.

Returns:
An array of string values.

mvc\resultlist\filter\ZMCategoryFilter.php at line 51

getProductIds

protected void getProductIds()

mvc\resultlist\filter\ZMCategoryFilter.php at line 91

getQueryDetails

public void getQueryDetails(mixed method, mixed args)


ZenMagick 0.9.10