Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Checkbox form element
string $_checkedValue = '1'
Value when checked
string $_uncheckedValue = '0'
Value when not checked
string $_value = '0'
Current value
bool $checked = 'false'
Is the checkbox checked?
string $helper = 'formCheckbox'
Use formCheckbox view helper by default
array $options = 'array'
Options that will be passed to the view helper
getCheckedValue(
)
:
string
Get value when checked
getUncheckedValue(
)
:
string
Get value when not checked
isChecked(
)
:
bool
Get checked flag
setChecked(
bool $flag
)
:
Zend_Form_Element_Checkbox
Set checked flag
setCheckedValue(
string $value
)
:
Zend_Form_Element_Checkbox
Set checked value
setOptions(
array $options
)
:
Zend_Form_Element_Checkbox
Set options
Intercept checked and unchecked values and set them early; test stored value against checked and unchecked values after configuration.
setUncheckedValue(
string $value
)
:
Zend_Form_Element_Checkbox
Set unchecked value
setValue(
mixed $value
)
:
Zend_Form_Element_Checkbox
Set value
If value matches checked value, sets to that value, and sets the checked flag to true.
Any other value causes the unchecked value to be set as the current value, and the checked flag to be set as false.