ZFormWebElementLocated in /Form/elements/ZFormWebElement.php (line 34)
ZFormElement | --ZFormWebElement
| Class | Description |
|---|---|
ZForm
|
|
ZFormInputElement
|
|
ZFormLink
|
|
ZFormOption
|
|
ZFormSelect
|
ZFormWebElement
__construct
([ $id = null], [ $parentNode = null], [ $tagName = null], [ $wrapExisting = false])
mixed
$_bottomBlocks
(line 38)
mixed
$_tagName
(line 36)
mixed
$_topBlocks
(line 37)
mixed
$_wrapExisting
(line 39)
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
Constructor __construct (line 45)
addScriptBlock (line 266)
Adds a fragment of script (optionally) named to the element either at the top or bottom of the element. Named script blocks are maintained in an assoc array.
close (line 194)
Generates the closing stanza for the HTML which consists of closing tag.
Nothing is generated if the element is wrapping existing markup.
emitAttributes (line 128)
Generates the attributes of the ZFormWebElement HTML opening stanza. Values are double quoted in the output stream.
emitScriptBlocks (line 295)
Iterates over the script fragments associated with the elements and emits them into the current output stream.
getMemento (line 344)
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
getValue (line 86)
Overridden implementation of getValue which returns the 'value' attribute of the ZFormWebElement
loadRequestData (line 317)
Retrieves the data associated with this element from the ZRequest object.
open (line 171)
Generates the opening stanza of the HTML which consists of the opening tags and the attributes of the element. If the element does not contain children the tag is also closed. Nothing is generated if the tag is wrapping existing markup.
render (line 226)
Renders the ZFormWebElement into its HTML into the current output
stream. Rendering the element consists of 1) Opening the tag 2) Rendering its body 3) Closing the tag 4) Emitting validators and behaviors associated with the element
renderBody (line 243)
Renders the body of the element's which by default consists of
rendering each of the element's children. Subclasses should implement this methods to perform and specific tasks and then send super for processing the children
setMemento (line 354)
The bookend implementation to @see getMemento(). This function is a void
implementation of the protocol to simplify the task of subclassing
setValue (line 99)
Overridden implementation of setValue which sets the 'value' of the attribute for the ZFormWebElement
setWrapExisting (line 117)
ZFormWebElements can be used to wraped existing HTML forms so that
validators and behaviors can be added to the page witout changing the original form definition. The setWrapExisting method tells the ZFormWebElement that to operate in this mode. NOTE: When wrapping existing forms, ZFormWebElements do not generate HTML markup
_applyClientBehaviors (line 409)
This method enables the behaviors associated with element to have a chance to modified the element before it is emitted.
_emitClientBehaviors (line 387)
Generates the behaviors associated with the element. Validators are guaranteed to run with the JavaScript variable 'element' bound to the HTML presentation of the form element.
_emitClientValidators (line 364)
Generates the validators associated with the element.
__get (line 61)
ZFormWebElements maintain HTML attributes using the __get method.
__set (line 73)
Sets the value of the $nm HTML property on the ZFormWebElement.
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()
Documentation generated on Wed, 21 Feb 2007 12:03:45 -0800 by phpDocumentor 1.3.1