Class Zend_View_Helper_FormCheckbox

Description

Helper to generate a "checkbox" element

  • license: New BSD License
  • copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

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

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 59)

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, 21 Feb 2007 11:49:05 -0800 by phpDocumentor 1.3.1