ZMObject
└─ZMWidget
└─ZMFormWidget
└─ZMSelectFormWidget
└─ZMManufacturerSelectFormWidget
public class ZMManufacturerSelectFormWidget
extends ZMSelectFormWidget
| Method Summary | |
|---|---|
| void | Create new instance. |
| array | getOptions(ZMRequest request) {@inheritDoc} |
| 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 | |
public void __construct()
Create new instance.
public array getOptions(ZMRequest request)
Get the options map.
A manufacturer select form widget.
This widget will append a list of all available manufacturers 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 no manufactuer is set/available.
Example:
'ManufacturerSelectFormWidget#title=Manufacturer&options=0= --- '