Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domhtml_formelement.php
Document Object Model for PHP - phpDOM.XHTML

HTMLFormElement

Node
   |
  +-- Element
     |
    +-- HTMLElement
       |
      +-- HTMLFormElement

The HTMLFormElement-Class

 

private class HTMLFormElement extends HTMLElement

The HTMLFormElement-Class
represents a form tag

AuthorsDietmar Glachs <dietmar.glachs@salzburgresearch.at>
Versiondevel.0.4
Copyright2000 Salzburg Research Gesellschaft m.b.H.

 

Methods inherited from HTMLElement

HTMLElement, getClassName, setStyle, setId, setClass, setTitle, setLang, getStyle, getId, getClass, getLang, getTitle

Methods inherited from Element

Element, getTagName, getElementById, _internal_getElementById, getElementsByTagName, _internal_getElementsByTagName, setAttribute, setName, setId, getName, getId, getAttribute

Methods inherited from Node

Node, Tag, appendChild, cloneNode, removeChild, getOwnerDocument, getFirstChild, getNextChild, getLastChild, getNodeById, hasChildNodes, hasMoreElements, getParentNode, getParent, getChildNodes, setNodeValue, getNodeValue, getAttributes, toString, getNodeName, getNodeType, addElement, _internal_toString, _internal_cloneNode, _internal_selfCheck, _internal_getNodeById

Public Method Summary

boolean

setMethod(string $method)

setMethod set the method attribute
boolean

setAction(string $action)

setAction set the action attribute
boolean

setTarget(string $target)

setTarget set the target attribute
string

getMethod()

getMethod returns the method attribute, if set
string

getAction()

getAction returns the action attribute, if set
string

getTarget()

getTarget returns the target attribute, if set
array

getElements()

getElements retrieves all form elements of the current form
void

HTMLFormElement()

Warning: documentation is missing.

Private Method Summary

boolean

_internal_getElements(object DomNode $NodeToCheck, array &$NodesFound)

_internal_getElements searches the sub-tree of a form for child elements.

Fields inherited from Element

$tagName

Fields inherited from Node

$nodeName, $nodevalue, $attribute, $node

Public Method Details

setMethod

public boolean setMethod( string $method )

  setMethod set the method attribute

Parameter
string $method
either POST or GET
Returns boolean

true


setAction

public boolean setAction( string $action )

  setAction set the action attribute

Parameter
string $action
Returns boolean

true


setTarget

public boolean setTarget( string $target )

  setTarget set the target attribute

Parameter
string $target
Returns boolean

true


getMethod

public string getMethod( )

  getMethod returns the method attribute, if set

Returns string $method


getAction

public string getAction( )

  getAction returns the action attribute, if set

Returns string $action


getTarget

public string getTarget( )

  getTarget returns the target attribute, if set

Returns string $target


getElements

public array getElements( )

  getElements retrieves all form elements of the current form

Returns array

An array with all form elements in the scope of the current form


HTMLFormElement

public void HTMLFormElement( )

 

Warning: documentation is missing.

Returns void


Private Method Details

_internal_getElements

private boolean _internal_getElements( object DomNode $NodeToCheck, array &$NodesFound )

  _internal_getElements searches the sub-tree of a form for child elements.
This private function, never use directly, works with DomNode objects. Itsearches the subtree for all elements which count in the javascript element list.Elements will be returned as:input ..... HTMLInputElementselect .... HTMLSelectElementtextarea .. HTMLTextareaElementbutton .... HTMLButtonElementobject .... HTMLObjectElement

Parameter
object DomNode $NodeToCheck
The DomNode to check for a form element
array &$NodesFound
A reference to an array. All form elements will be added to
the array.
Returns boolean

true

Magic This function works with >> DomNode << objects!


Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta