Public Member Functions | Protected Member Functions

Zend_View_Helper_FormSelect Class Reference

Inheritance diagram for Zend_View_Helper_FormSelect:
Zend_View_Helper_FormElement Zend_View_Helper_HtmlElement Zend_View_Helper_Abstract Zend_View_Helper_Interface

Public Member Functions

 formSelect ($name, $value=null, $attribs=null, $options=null, $listsep="<br />\n")

Protected Member Functions

 _build ($value, $label, $selected, $disable)

Detailed Description

Definition at line 39 of file FormSelect.php.


Member Function Documentation

_build ( value,
label,
selected,
disable 
) [protected]

Builds the actual <option> tag

Parameters:
string$valueOptions Value
string$labelOptions Label
array$selectedThe option value(s) to mark as 'selected'
array | bool$disableWhether the select is disabled, or individual options are
Returns:
string Option Tag XHTML

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

Parameters:
string | array$nameIf 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$valueThe 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$attribsAttributes added to the 'select' tag.
array$optionsAn array of key-value pairs where the array key is the radio value, and the array value is the radio text.
string$listsepWhen disabled, use this list separator string between list values.
Returns:
string The select tag and options XHTML.

Definition at line 64 of file FormSelect.php.


The documentation for this class was generated from the following file: