## ZFormRadioButton

Description

- license: Zend Framework License version 1.0
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Form/elements/ZFormRadioButton.php (line 34)

    ZFormElement
       |
       --ZFormWebElement
          |
          --ZFormInputElement
             |
             --ZFormRadioButton

Variable Summary
mixed $_checked
Method Summary
void __construct ([string $id = null], [ZFormWebElement $parentNode = null])
mixed getMemento ()
void loadRequestData ()
void setMemento ( $memento)
void setValue (string $value)
Variables
mixed $_checked = false (line 37)

- access: protected

#### Inherited Variables

Inherited from ZFormWebElement

> ZFormWebElement::$_bottomBlocks
> ZFormWebElement::$_tagName
> ZFormWebElement::$_topBlocks
> ZFormWebElement::$_wrapExisting

Inherited from ZFormElement

> ZFormElement::$_attributes
> ZFormElement::$_behaviors
> ZFormElement::$_childNodes
> ZFormElement::$_eatEvents
> ZFormElement::$_errors
> ZFormElement::$_eventListeners
> ZFormElement::$_events
> ZFormElement::$_idPath
> ZFormElement::$_parentNode
> ZFormElement::$_process
> ZFormElement::$_validators

Methods
Constructor __construct (line 48)

Class constructor. Sets up the ZForm element, types it as a 'RADIO' element.

This is the base class for all the INPUT types supported by ZForm.

- access: public

void __construct ([string $id = null], [ZFormWebElement $parentNode = null])

- string $id: id The optional identifier for the newly created ZFormRadio
- ZFormWebElement $parentNode: The optional parent of the newly create ZFormRadio The default value is null which means the ZFormRadio is a root element.

Redefinition of:

ZFormInputElement::__construct()
  Class constructor. Sets up the ZForm element, types it as a 'INPUT' element.

getMemento (line 99)

Default implementation of retriving the memento associated with the element

that will be used during persistent (@see persist()) The default implementation does not persist anything, we implement it here so subclasses are not required to

- return: null for the default implementation, subclasses should override.
- access: public

mixed getMemento ()

Redefinition of:

ZFormInputElement::getMemento()
  Retrieve the memento which will be stored with the session data representing the state of the input field. The default implemention is to simply ask the input element for its value

loadRequestData (line 64)

Retrieves the data associated with this element from the ZRequest object.

- access: public
- todo: I don't like getting from both get and post, Options include getting parent until a form is identified Potentially pass bucket in as well I don't like searching up, because for other controls you may not be contained withing a form

void loadRequestData ()

Redefinition of:

ZFormWebElement::loadRequestData()
  Retrieves the data associated with this element from the ZRequest object.

setMemento (line 109)

The bookend implementation to @see getMemento(). This function is a void

implementation of the protocol to simplify the task of subclassing

- access: public

void setMemento ( $memento)

- $memento

Redefinition of:

ZFormInputElement::setMemento()
  Restores the state of the input element from its memento which was returned by getMemento above. The default implementation is to set the value of the input element to the memento.

setValue (line 123)

Overridden implementation of setValue which sets the 'value' of the attribute for the ZFormWebElement

- access: public

void setValue (string $value)

- string $value

Redefinition of:

ZFormWebElement::setValue()
  Overridden implementation of setValue which sets the 'value' of the attribute for the ZFormWebElement

#### Inherited Methods

Inherited From ZFormInputElement

> ZFormInputElement::__construct()
> ZFormInputElement::getMemento()
> ZFormInputElement::setMemento()

Inherited From ZFormWebElement

> ZFormWebElement::__construct()
> ZFormWebElement::addScriptBlock()
> ZFormWebElement::close()
> ZFormWebElement::emitAttributes()
> ZFormWebElement::emitScriptBlocks()
> ZFormWebElement::getMemento()
> ZFormWebElement::getValue()
> ZFormWebElement::loadRequestData()
> ZFormWebElement::open()
> ZFormWebElement::render()
> ZFormWebElement::renderBody()
> ZFormWebElement::setMemento()
> ZFormWebElement::setValue()
> ZFormWebElement::setWrapExisting()
> ZFormWebElement::_applyClientBehaviors()
> ZFormWebElement::_emitClientBehaviors()
> ZFormWebElement::_emitClientValidators()
> ZFormWebElement::__get()
> ZFormWebElement::__set()

Inherited From ZFormElement

> ZFormElement::__construct()
> ZFormElement::addBehavior()
> ZFormElement::addEventListener()
> ZFormElement::addValidator()
> ZFormElement::appendChild()
> ZFormElement::fireEvent()
> ZFormElement::getAttribute()
> ZFormElement::getAttributes()
> ZFormElement::getBehaviors()
> ZFormElement::getChildNodes()
> ZFormElement::getElementById()
> ZFormElement::getErrorMessage()
> ZFormElement::getEventListeners()
> ZFormElement::getID()
> ZFormElement::getIDPath()
> ZFormElement::getIsProcessing()
> ZFormElement::getMemento()
> ZFormElement::getParentNode()
> ZFormElement::getRoot()
> ZFormElement::getValidationErrors()
> ZFormElement::getValidators()
> ZFormElement::getValue()
> ZFormElement::handleEvent()
> ZFormElement::hasChildNodes()
> ZFormElement::invokeApplication()
> ZFormElement::loadRequestData()
> ZFormElement::persist()
> ZFormElement::process()
> ZFormElement::removeChild()
> ZFormElement::removedBehavior()
> ZFormElement::removedValidator()
> ZFormElement::removeEventListener()
> ZFormElement::restoreState()
> ZFormElement::setAllowEvents()
> ZFormElement::setAttribute()
> ZFormElement::setID()
> ZFormElement::setMemento()
> ZFormElement::setParentNode()
> ZFormElement::setProcess()
> ZFormElement::setValue()
> ZFormElement::validate()
> ZFormElement::_appendToList()
> ZFormElement::_computeIDPath()
> ZFormElement::_gatherMementos()
> ZFormElement::_isLegalName()
> ZFormElement::_performValidation()
> ZFormElement::_processEvents()
> ZFormElement::_removeFromList()
> ZFormElement::_restoreMementos()

Class Constants

#### Inherited Constants

Inherited from ZFormElement

> ZFormElement::PATH_SEPARATOR

Documentation generated on Wed, 21 Feb 2007 12:03:40 -0800 by phpDocumentor 1.3.1