Class Zend_Dojo_Form_Element_CheckBox

Description

CheckBox dijit

Note: this would be easier with mixins or traits...

Located in /Dojo/Form/Element/CheckBox.php (line 37)

Zend_Form_Element
   |
   --Zend_Dojo_Form_Element_Dijit
      |
      --Zend_Dojo_Form_Element_CheckBox
Variable Summary
 bool $checked
 string $helper
 array $options
 string $_value
Method Summary
Variables
bool $checked = false (line 43)

Is the checkbox checked?

  • access: public
string $helper = 'CheckBox' (line 49)

Use formCheckbox view helper by default

  • access: public

Redefinition of:
Zend_Dojo_Form_Element_Dijit::$helper
View helper to use
array $options = array(
'checkedValue' => '1',
'uncheckedValue' => '0',
)
(line 55)

Options that will be passed to the view helper

  • access: public
string $_checkedValue = '1' (line 64)

Value when checked

  • access: protected
string $_uncheckedValue = '0' (line 70)

Value when not checked

  • access: protected
string $_value = '0' (line 76)

Current value

  • var: 0 or 1
  • access: protected

Redefinition of:
Zend_Form_Element::$_value
Element value

Inherited Variables

Inherited from Zend_Dojo_Form_Element_Dijit

Zend_Dojo_Form_Element_Dijit::$dijitParams

Inherited from Zend_Form_Element

Zend_Form_Element::$_allowEmpty
Zend_Form_Element::$_autoInsertNotEmptyValidator
Zend_Form_Element::$_belongsTo
Zend_Form_Element::$_decorators
Zend_Form_Element::$_description
Zend_Form_Element::$_disableLoadDefaultDecorators
Zend_Form_Element::$_errorMessages
Zend_Form_Element::$_errorMessageSeparator
Zend_Form_Element::$_errors
Zend_Form_Element::$_filters
Zend_Form_Element::$_ignore
Zend_Form_Element::$_isArray
Zend_Form_Element::$_isError
Zend_Form_Element::$_isErrorForced
Zend_Form_Element::$_isPartialRendering
Zend_Form_Element::$_label
Zend_Form_Element::$_loaders
Zend_Form_Element::$_messages
Zend_Form_Element::$_name
Zend_Form_Element::$_order
Zend_Form_Element::$_required
Zend_Form_Element::$_translator
Zend_Form_Element::$_translatorDisabled
Zend_Form_Element::$_type
Zend_Form_Element::$_validatorRules
Zend_Form_Element::$_validators
Zend_Form_Element::$_view
Methods
getCheckedValue (line 151)

Get value when checked

  • access: public
string getCheckedValue ()
getUncheckedValue (line 174)

Get value when not checked

  • access: public
string getUncheckedValue ()
isChecked (line 201)

Get checked flag

  • access: public
bool isChecked ()
setChecked (line 185)

Set checked flag

  • access: public
Zend_Form_Element_Checkbox setChecked (bool $flag)
  • bool $flag
setCheckedValue (line 139)

Set checked value

  • access: public
Zend_Form_Element_Checkbox setCheckedValue (string $value)
  • string $value
setOptions (line 87)

Set options

Intercept checked and unchecked values and set them early; test stored value against checked and unchecked values after configuration.

  • access: public
Zend_Form_Element_Checkbox setOptions ( $options)
  • array $options

Redefinition of:
Zend_Form_Element::setOptions()
Set object state from options array
setUncheckedValue (line 162)

Set unchecked value

  • access: public
Zend_Form_Element_Checkbox setUncheckedValue (string $value)
  • string $value
setValue (line 121)

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.

  • access: public
Zend_Form_Element_Checkbox setValue (mixed $value)
  • mixed $value

Redefinition of:
Zend_Form_Element::setValue()
Set element value

Inherited Methods

Inherited From Zend_Dojo_Form_Element_Dijit

 Zend_Dojo_Form_Element_Dijit::__construct()
 Zend_Dojo_Form_Element_Dijit::clearDijitParams()
 Zend_Dojo_Form_Element_Dijit::getDijitParam()
 Zend_Dojo_Form_Element_Dijit::getDijitParams()
 Zend_Dojo_Form_Element_Dijit::hasDijitParam()
 Zend_Dojo_Form_Element_Dijit::loadDefaultDecorators()
 Zend_Dojo_Form_Element_Dijit::removeDijitParam()
 Zend_Dojo_Form_Element_Dijit::setDijitParam()
 Zend_Dojo_Form_Element_Dijit::setDijitParams()
 Zend_Dojo_Form_Element_Dijit::setView()

Inherited From Zend_Form_Element

 Zend_Form_Element::__construct()
 Zend_Form_Element::addDecorator()
 Zend_Form_Element::addDecorators()
 Zend_Form_Element::addError()
 Zend_Form_Element::addErrorMessage()
 Zend_Form_Element::addErrorMessages()
 Zend_Form_Element::addErrors()
 Zend_Form_Element::addFilter()
 Zend_Form_Element::addFilters()
 Zend_Form_Element::addPrefixPath()
 Zend_Form_Element::addPrefixPaths()
 Zend_Form_Element::addValidator()
 Zend_Form_Element::addValidators()
 Zend_Form_Element::autoInsertNotEmptyValidator()
 Zend_Form_Element::clearDecorators()
 Zend_Form_Element::clearErrorMessages()
 Zend_Form_Element::clearFilters()
 Zend_Form_Element::clearValidators()
 Zend_Form_Element::filterName()
 Zend_Form_Element::getAllowEmpty()
 Zend_Form_Element::getAttrib()
 Zend_Form_Element::getAttribs()
 Zend_Form_Element::getBelongsTo()
 Zend_Form_Element::getDecorator()
 Zend_Form_Element::getDecorators()
 Zend_Form_Element::getDescription()
 Zend_Form_Element::getErrorMessages()
 Zend_Form_Element::getErrorMessageSeparator()
 Zend_Form_Element::getErrors()
 Zend_Form_Element::getFilter()
 Zend_Form_Element::getFilters()
 Zend_Form_Element::getFullyQualifiedName()
 Zend_Form_Element::getId()
 Zend_Form_Element::getIgnore()
 Zend_Form_Element::getLabel()
 Zend_Form_Element::getMessages()
 Zend_Form_Element::getName()
 Zend_Form_Element::getOrder()
 Zend_Form_Element::getPluginLoader()
 Zend_Form_Element::getTranslator()
 Zend_Form_Element::getType()
 Zend_Form_Element::getUnfilteredValue()
 Zend_Form_Element::getValidator()
 Zend_Form_Element::getValidators()
 Zend_Form_Element::getValue()
 Zend_Form_Element::getView()
 Zend_Form_Element::hasErrors()
 Zend_Form_Element::init()
 Zend_Form_Element::isArray()
 Zend_Form_Element::isRequired()
 Zend_Form_Element::isValid()
 Zend_Form_Element::loadDefaultDecorators()
 Zend_Form_Element::loadDefaultDecoratorsIsDisabled()
 Zend_Form_Element::markAsError()
 Zend_Form_Element::removeDecorator()
 Zend_Form_Element::removeFilter()
 Zend_Form_Element::removeValidator()
 Zend_Form_Element::render()
 Zend_Form_Element::setAllowEmpty()
 Zend_Form_Element::setAttrib()
 Zend_Form_Element::setAttribs()
 Zend_Form_Element::setAutoInsertNotEmptyValidator()
 Zend_Form_Element::setBelongsTo()
 Zend_Form_Element::setConfig()
 Zend_Form_Element::setDecorators()
 Zend_Form_Element::setDescription()
 Zend_Form_Element::setDisableLoadDefaultDecorators()
 Zend_Form_Element::setDisableTranslator()
 Zend_Form_Element::setErrorMessages()
 Zend_Form_Element::setErrorMessageSeparator()
 Zend_Form_Element::setErrors()
 Zend_Form_Element::setFilters()
 Zend_Form_Element::setIgnore()
 Zend_Form_Element::setIsArray()
 Zend_Form_Element::setLabel()
 Zend_Form_Element::setName()
 Zend_Form_Element::setOptions()
 Zend_Form_Element::setOrder()
 Zend_Form_Element::setPluginLoader()
 Zend_Form_Element::setRequired()
 Zend_Form_Element::setTranslator()
 Zend_Form_Element::setValidators()
 Zend_Form_Element::setValue()
 Zend_Form_Element::setView()
 Zend_Form_Element::translatorIsDisabled()
 Zend_Form_Element::_filterValue()
 Zend_Form_Element::_getDecorator()
 Zend_Form_Element::_getErrorMessages()
 Zend_Form_Element::_hasErrorMessages()
 Zend_Form_Element::_loadDecorator()
 Zend_Form_Element::_loadFilter()
 Zend_Form_Element::_loadValidator()
 Zend_Form_Element::__call()
 Zend_Form_Element::__get()
 Zend_Form_Element::__set()
 Zend_Form_Element::__toString()
Class Constants

Documentation generated on Thu, 01 Apr 2010 12:58:34 -0400 by phpDocumentor 1.4.3