Public Member Functions | Protected Attributes

Zend_View_Helper_FormRadio Class Reference

Inheritance diagram for Zend_View_Helper_FormRadio:
Zend_View_Helper_FormElement Zend_View_Helper_HtmlElement Zend_View_Helper_Abstract Zend_View_Helper_Interface Zend_View_Helper_FormMultiCheckbox

Public Member Functions

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

Protected Attributes

 $_inputType = 'radio'
 $_isArray = false

Detailed Description

Definition at line 39 of file FormRadio.php.


Member Function Documentation

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

Generates a set of radio button elements.

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 radio value to mark as 'checked'.
array$optionsAn array of key-value pairs where the array key is the radio value, and the array value is the radio text.
array | string$attribsAttributes added to each radio.
Returns:
string The radio buttons XHTML.

Definition at line 71 of file FormRadio.php.


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