Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Helper_FormMultiCheckbox Class Reference

Public Member Functions

 formMultiCheckbox ($name, $value=null, $attribs=null, $options=null, $listsep="<br />\n")
 Generates a set of checkbox button elements.
 
- Public Member Functions inherited from Zend_View_Helper_FormRadio
 formRadio ($name, $value=null, $attribs=null, $options=null, $listsep="<br />\n")
 Generates a set of radio button elements.
 
- Public Member Functions inherited from Zend_View_Helper_FormElement
 getTranslator ()
 Get translator.
 
 setTranslator ($translator=null)
 Set translator.
 
- Public Member Functions inherited from Zend_View_Helper_HtmlElement
 getClosingBracket ()
 Get the tag closing bracket.
 
- Public Member Functions inherited from Zend_View_Helper_Abstract
 setView (Zend_View_Interface $view)
 Set the View object.
 
 direct ()
 Strategy pattern: currently unutilized.
 

Protected Attributes

 $_inputType = 'checkbox'
 
 $_isArray = true
 
- Protected Attributes inherited from Zend_View_Helper_FormRadio
 $_inputType = 'radio'
 
 $_isArray = false
 
- Protected Attributes inherited from Zend_View_Helper_FormElement
 $_translator
 
- Protected Attributes inherited from Zend_View_Helper_HtmlElement
 $_closingBracket = null
 

Additional Inherited Members

- Public Attributes inherited from Zend_View_Helper_HtmlElement
const EOL = "\n"
 EOL character.
 
- Protected Member Functions inherited from Zend_View_Helper_FormElement
 _getInfo ($name, $value=null, $attribs=null, $options=null, $listsep=null)
 Converts parameter arguments to an element info array.
 
 _hidden ($name, $value=null, $attribs=null)
 Creates a hidden element.
 

Member Function Documentation

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

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

Member Data Documentation

$_inputType = 'checkbox'
protected
$_isArray = true
protected