|
|
|
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
|
| |
|
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 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 |
|
|
| Returns |
boolean true |
|
setTarget |
|
public boolean setTarget( string $target )
|
| |
setTarget set the target attribute
|
| Parameter |
|
|
| 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! |
|
|
|
|
|
| PHPDoc 1.0beta |