Docs For Class ZFormInputElement

## Class ZFormInputElement

Description

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

Located in /Zend/Form/elements/ZFormInputElement.php (line 34)

    ZFormElement
       |
       --ZFormWebElement
          |
          --ZFormInputElement

Direct descendents

Class | Description
--- | ---
ZFormCheckbox |
ZFormEntryField |
ZFormResetButton |
ZFormSubmitButton |
ZFormPasswordField |
ZFormFile |
ZFormHiddenField |
ZFormImage |
ZFormRadioButton |
ZFormButton |

Method Summary
void __construct ([mixed $id = null], [mixed $parentNode = null], [string $type = null])
voie getMemento ()
void setMemento ( $memento)
Variables

#### 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 47)

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

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

- access: public

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

- string $type: The HTML type of the input element, provided by the subclasses

Redefinition of:

ZFormWebElement::__construct()

Redefined in descendants as:

- ZFormCheckbox::__construct() : Class constructor. Sets up the ZForm element, types it as a 'CHECKBOX' element
- ZFormEntryField::__construct() : Class constructor. Sets up the ZForm element, types it as a 'TEXT' element
- ZFormResetButton::__construct() : Class constructor. Sets up the ZForm element, types it as a 'RESET' element.
- ZFormSubmitButton::__construct() : Class constructor. Sets up the ZForm element, types it as a 'SUBMIT' element.
- ZFormPasswordField::__construct() : Class constructor. Sets up the ZForm element, types it as a 'PASSWORD' element.
- ZFormFile::__construct() : Class constructor. Sets up the ZForm element, types it as a 'FILE' element
- ZFormHiddenField::__construct() : Class constructor. Sets up the ZForm element, types it as a 'HIDDEN' element
- ZFormImage::__construct() : Class constructor. Sets up the ZForm element, types it as a 'IMAGE' element
- ZFormRadioButton::__construct() : Class constructor. Sets up the ZForm element, types it as a 'RADIO' element.
- ZFormButton::__construct() : Class constructor. Sets up the ZForm element, types it as a 'FORM' element

getMemento (line 64)

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

- access: public

voie getMemento ()

Redefinition of:

ZFormWebElement::getMemento()
  Default implementation of retriving the memento associated with the element

Redefined in descendants as:

- ZFormCheckbox::getMemento() : Create a memento which saves the state of the Checkbox for storage in the session.
- ZFormImage::getMemento() : Create a memento which saves the state of the FormImage for storage in the session.
- ZFormRadioButton::getMemento() : Default implementation of retriving the memento associated with the element

setMemento (line 75)

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.

- access: public

void setMemento ( $memento)

- $memento

Redefinition of:

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

Redefined in descendants as:

- ZFormCheckbox::setMemento() : Restores the state of the checkbox from its memento which was returned by getMemento.
- ZFormImage::setMemento() : Restores the state of the ZFormImage from its memento which was returned by getMemento.
- ZFormRadioButton::setMemento() : The bookend implementation to @see getMemento(). This function is a void

#### Inherited Methods

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 Sun, 29 Oct 2006 21:28:08 -0600 by phpDocumentor 1.3.0RC6