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 dijit
Note: this would be easier with mixins or traits...
string $_checkedValue = '1'Value when checked
Detailsstring $_uncheckedValue = '0'Value when not checked
Detailsstring $_value = '0'Current value
Detailsbool $checked = 'false'Is the checkbox checked?
Detailsstring $helper = 'CheckBox'Use formCheckbox view helper by default
Detailsarray $options = 'array'Options that will be passed to the view helper
DetailsgetCheckedValue(
)
:
stringGet value when checked
DetailsgetUncheckedValue(
)
:
stringGet value when not checked
DetailsisChecked(
)
:
boolGet checked flag
DetailssetChecked(
bool $flag
)
:
Zend_Form_Element_CheckboxSet checked flag
DetailssetCheckedValue(
string $value
)
:
Zend_Form_Element_CheckboxSet checked value
DetailssetOptions(
array $options
)
:
Zend_Form_Element_CheckboxSet options
Intercept checked and unchecked values and set them early; test stored value against checked and unchecked values after configuration.
DetailssetUncheckedValue(
string $value
)
:
Zend_Form_Element_CheckboxSet unchecked value
DetailssetValue(
mixed $value
)
:
Zend_Form_Element_CheckboxSet 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.
Details