Public Member Functions | |
formSelect ($name, $value=null, $attribs=null, $options=null, $listsep="<br />\n") | |
Protected Member Functions | |
_build ($value, $label, $selected, $disable) |
Definition at line 39 of file FormSelect.php.
_build | ( | $ | value, |
$ | label, | ||
$ | selected, | ||
$ | disable | ||
) | [protected] |
Builds the actual <option> tag
string | $value | Options Value |
string | $label | Options Label |
array | $selected | The option value(s) to mark as 'selected' |
array | bool | $disable | Whether the select is disabled, or individual options are |
Definition at line 153 of file FormSelect.php.
formSelect | ( | $ | name, |
$ | value = null , |
||
$ | attribs = null , |
||
$ | options = null , |
||
$ | listsep = "<br />\n" |
||
) |
Generates 'select' list of options.
public
string | array | $name | If a string, the element name. If an array, all other parameters are ignored, and the array elements are extracted in place of added parameters. |
mixed | $value | The option value to mark as 'selected'; if an array, will mark all values in the array as 'selected' (used for multiple-select elements). |
array | string | $attribs | Attributes added to the 'select' tag. |
array | $options | An array of key-value pairs where the array key is the radio value, and the array value is the radio text. |
string | $listsep | When disabled, use this list separator string between list values. |
Definition at line 64 of file FormSelect.php.