Class Zend_View_Helper_FormCheckbox

Description

Helper to generate a "checkbox" element

Located in /library/Zend/View/Helper/FormCheckbox.php (line 36)

Zend_View_Helper_FormElement
   |
   --Zend_View_Helper_FormCheckbox
Method Summary
 string formCheckbox (string|array $name, [mixed $value = null], [array $attribs = null], [mixed $options = array(1,0)])
Methods
formCheckbox (line 57)

Generates a 'checkbox' element.

  • return: The element XHTML.
  • access: public
string formCheckbox (string|array $name, [mixed $value = null], [array $attribs = null], [mixed $options = array(1,0)])
  • 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 element value.
  • array $attribs: Attributes for the element tag.
  • mixed $options: If a scalar (single value), the value of the checkbox when checked; if an array, element 0 is the value when checked, and element 1 is the value when not-checked.

Inherited Methods

Inherited From Zend_View_Helper_FormElement

 Zend_View_Helper_FormElement::_getInfo()
 Zend_View_Helper_FormElement::_hidden()
 Zend_View_Helper_FormElement::_htmlAttribs()

Documentation generated on Wed, 08 Mar 2006 04:52:33 -0800 by phpDocumentor 1.3.0RC4