ZMObject
└─ZMSortOption
public class ZMSortOption
extends ZMObject
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(string name, int id, boolean active, boolean decending) Create a new sort option. |
| string | getId() Get the option id. |
| string | getName() Get the option name. |
| string | Get the reverse option id. |
| boolean | isActive() Check if this option is active. |
| boolean | Check if the sorting is ascending or decending. |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(string name, int id, boolean active, boolean decending)
Create a new sort option.
public string getId()
Get the option id.
public string getName()
Get the option name.
public string getReverseId()
Get the reverse option id.
public boolean isActive()
Check if this option is active.
true if this option is active, false, if not.public boolean isDecending()
Check if the sorting is ascending or decending.
true if sorting is decending, false if sorting is ascending.
A single sort option.
The returned id will automatically reflect the current status, the id the sort order.