Public Member Functions | Static Public Member Functions | Static Protected Attributes

Zend_View_Helper_FormCheckbox Class Reference

Inheritance diagram for Zend_View_Helper_FormCheckbox:
Zend_View_Helper_FormElement Zend_View_Helper_HtmlElement Zend_View_Helper_Abstract Zend_View_Helper_Interface

Public Member Functions

 formCheckbox ($name, $value=null, $attribs=null, array $checkedOptions=null)

Static Public Member Functions

static determineCheckboxInfo ($value, $checked, array $checkedOptions=null)

Static Protected Attributes

static $_defaultCheckedOptions

Detailed Description

Definition at line 39 of file FormCheckbox.php.


Member Function Documentation

static determineCheckboxInfo ( value,
checked,
array $  checkedOptions = null 
) [static]

Determine checkbox information

Parameters:
string$value
bool$checked
array | null$checkedOptions
Returns:
array

Definition at line 115 of file FormCheckbox.php.

formCheckbox ( name,
value = null,
attribs = null,
array $  checkedOptions = null 
)

Generates a 'checkbox' element.

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 element value.
array$attribsAttributes for the element tag.
Returns:
string The element XHTML.

Definition at line 62 of file FormCheckbox.php.


Field Documentation

$_defaultCheckedOptions [static, protected]
Initial value:
 array(
        'checkedValue'   => '1',
        'uncheckedValue' => '0'
    )

Definition at line 45 of file FormCheckbox.php.


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