ZMObject
└─ZMWidget
└─ZMFormWidget
└─ZMSelectFormWidget
public class ZMSelectFormWidget
extends ZMFormWidget
| Method Summary | |
|---|---|
| void | Create new instance. |
| void | addOption(string name, string value) Add a single option. |
| array | getOptions(ZMRequest request) Get the options map. |
| string | {@inheritDoc} |
| boolean | {@inheritDoc} |
| string | {@inheritDoc} |
| void | renderRadio(ZMRequest request) Render as group of radio buttons. |
| void | renderSelect(ZMRequest request) Render as seclect drop down. |
| void | setMultiple(boolean multiple) Set the multiple flag. |
| void | setOptions(mixed options) Set the options map. |
| void | setValue(mixed value) {@inheritDoc} |
| 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 void addOption(string name, string value)
Add a single option.
null to use the name.public array getOptions(ZMRequest request)
Get the options map.
public string getStringValue()
Get a stringified version of the value suitable for storing.
public boolean isMultiValue()
Check if this widget allows multiple values.
true if multiple values are supported.public string render(ZMRequest request)
public void renderRadio(ZMRequest request)
Render as group of radio buttons.
public void renderSelect(ZMRequest request)
Render as seclect drop down.
public void setMultiple(boolean multiple)
Set the multiple flag.
public void setOptions(mixed options)
Set the options map.
public void setValue(mixed value)
Set the value.
A select form widget.
Style can be: select (default) or radio.