ZenMagick 0.9.10


zenmagick.store.admin.mvc.widgets\ZMorderStatusSelectFormWidget
mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 36

Class ZMorderStatusSelectFormWidget

ZMObject
└─ZMWidget
└─ZMFormWidget
└─ZMSelectFormWidget
└─ZMorderStatusSelectFormWidget

public class ZMorderStatusSelectFormWidget
extends ZMSelectFormWidget

A order status select form widget.

This widget will append a list of all available order stati to the options list. That means the generic options propert may be used to set custom options that will show up at the top of the list.

One typical use is to prepend an empty option if required.

Author:
DerManoMann

Method Summary
void

__construct()

Create new instance.

array

getOptions(ZMRequest request)

{@inheritDoc}

boolean

isShowKey()

Check if the numeric key should be appended to the description.

void

setShowKey(boolean enable)

Show/hide the numeric key.

Methods inherited from org.zenmagick.mvc.widgets.form\ZMSelectFormWidget
__construct, addOption, getOptions, getStringValue, isMultiValue, render, renderRadio, renderSelect, setMultiple, setOptions, setValue
Methods inherited from org.zenmagick.mvc.widgets.form\ZMFormWidget
__construct, compare, getAttributeNames, getAttributeString, getName, getStringValue, getValue, isEncode, isMultiValue, setAttributeNames, setEncode, setName, setValue
Methods inherited from org.zenmagick.mvc.widgets\ZMWidget
__construct, getDescription, getTitle, isEnabled, render, setDescription, setEnabled, setTitle
Methods inherited from org.zenmagick.core\ZMObject
__construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton

Method Detail

mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 43

__construct

public void __construct()

Create new instance.


mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 76

getOptions

public array getOptions(ZMRequest request)

Get the options map.

Parameters:
request - The current request.
Returns:
Map of value/name pairs.

mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 69

isShowKey

public boolean isShowKey()

Check if the numeric key should be appended to the description.

Returns:
true to append, false to hide.

mvc\widgets\ZMOrderStatusSelectFormWidget.php at line 60

setShowKey

public void setShowKey(boolean enable)

Show/hide the numeric key.

Parameters:
enable - true to append the numeric value to the description.

ZenMagick 0.9.10