Class Zend_View_Helper_FormCheckbox

Description

Helper to generate a "checkbox" element

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

Located in /View/Helper/FormCheckbox.php (line 39)

Zend_View_Helper_Abstract
   |
   --Zend_View_Helper_HtmlElement
      |
      --Zend_View_Helper_FormElement
         |
         --Zend_View_Helper_FormCheckbox
Variable Summary
Method Summary
 static array determineCheckboxInfo (string $value, bool $checked, [ $checkedOptions = null])
 string formCheckbox (string|array $name, [mixed $value = null], [array $attribs = null], [ $checkedOptions = null])
Variables
static array $_defaultCheckedOptions = array(
'checkedValue' => '1',
'uncheckedValue' => '0'
)
(line 45)

Default checked/unchecked options

  • access: protected

Inherited Variables

Inherited from Zend_View_Helper_FormElement

Zend_View_Helper_FormElement::$_translator

Inherited from Zend_View_Helper_HtmlElement

Zend_View_Helper_HtmlElement::$_closingBracket

Inherited from Zend_View_Helper_Abstract

Zend_View_Helper_Abstract::$view
Methods
static determineCheckboxInfo (line 115)

Determine checkbox information

  • access: public
static array determineCheckboxInfo (string $value, bool $checked, [ $checkedOptions = null])
  • string $value
  • bool $checked
  • array|null $checkedOptions
formCheckbox (line 62)

Generates a 'checkbox' element.

  • return: The element XHTML.
  • access: public
string formCheckbox (string|array $name, [mixed $value = null], [array $attribs = null], [ $checkedOptions = null])
  • 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.
  • array $checkedOptions

Inherited Methods

Inherited From Zend_View_Helper_FormElement

 Zend_View_Helper_FormElement::getTranslator()
 Zend_View_Helper_FormElement::setTranslator()
 Zend_View_Helper_FormElement::_getInfo()
 Zend_View_Helper_FormElement::_hidden()

Inherited From Zend_View_Helper_HtmlElement

 Zend_View_Helper_HtmlElement::getClosingBracket()
 Zend_View_Helper_HtmlElement::_htmlAttribs()
 Zend_View_Helper_HtmlElement::_isXhtml()
 Zend_View_Helper_HtmlElement::_normalizeId()

Inherited From Zend_View_Helper_Abstract

 Zend_View_Helper_Abstract::direct()
 Zend_View_Helper_Abstract::setView()
Class Constants

Documentation generated on Mon, 21 Jun 2010 15:24:38 -0400 by phpDocumentor 1.4.3