ZMObject
|
+--ZMResultListFilter
public class ZMResultListFilter
extends ZMObject
| Field Summary | |
|---|---|
| protected mixed | |
| protected mixed | |
| protected mixed | |
| protected mixed | |
| Fields inherited from org.zenmagick.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMResultListFilter(string id, string name) Create a new result list filter. |
|
| Method Summary | |
|---|---|
| boolean | exclude(mixed obj) Return true if the given object is to be excluded. |
| array | filter(array list) Filter the given list using the filters exclude($obj) method. |
| string | getId() Returns the filters unique form field name. |
| string | getName() Returns the filter name. |
| array | Returns a list of all available filter values. |
| array | Returns a list of active filter values. |
| boolean | isActive() Returns true if this filter is currently active. |
| boolean | Returns true if this filter is avaialble for usage. |
| boolean | Returns true if this filter supports multiple values as filter value. |
| void | setResultList(ZMResultList list) Set the result list we belong to. |
| Methods inherited from org.zenmagick.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
protected mixed $filterValues_
protected mixed $id_
protected mixed $list_
protected mixed $name_
public ZMResultListFilter(string id, string name)
Create a new result list filter.
public boolean exclude(mixed obj)
Return true if the given object is to be excluded.
true if the object is to be excluded, false if not.public array filter(array list)
Filter the given list using the filters exclude($obj) method.
public string getId()
Returns the filters unique form field name.
public string getName()
Returns the filter name.
public array getOptions()
Returns a list of all available filter values.
public array getSelectedValues()
Returns a list of active filter values.
If isActive() returns false, this list is guranteed to be empty.
public boolean isActive()
Returns true if this filter is currently active.
true if the filter is active, false if not.public boolean isAvailable()
Returns true if this filter is avaialble for usage.
Filter might be configured but not be useful if there is for example only one category or manufacturer to choose from.
true if available, false if not.public boolean isMultiSelection()
Returns true if this filter supports multiple values as filter value.
true if multiple filter values are supported, false if not.public void setResultList(ZMResultList list)
Set the result list we belong to.
This is important to be able to analyze the list to generate the list of all available options (if based on the current data).
Base result list filter.