|
|
|
File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domhtml_inputelement.php
Document Object Model for PHP - phpDOM.XHTML
HTMLInputElement
Node | +-- Element | +-- HTMLElement | +-- HTMLInputElement
The HTMLInputElement-Class
|
private class HTMLInputElement extends HTMLElement
The HTMLInputElement-Class
represents a form input element
|
| |
|
Direct known subclasses: HTMLButtonElement, HTMLObjectElement, HTMLOptionElement, HTMLSelectElement, HTMLTextareaElement
|
|
Methods inherited from HTMLElement |
| HTMLElement, getClassName, setStyle, setId, setClass, setTitle, setLang, getStyle, getId, getClass, getLang, getTitle |
|
|
|
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 |
setType |
|
public boolean setType( string $type )
|
| |
setType set the type attribute
|
| Parameter |
|
| string |
$type |
|
|
may be "text", "checkbox", "radio", "button", "image" |
|
| Returns |
boolean true |
|
getType |
|
public string getType( )
|
| |
getType returns the type attribute, if set
|
| Returns |
string $type |
|
setReadonly |
|
public boolean setReadonly( [ boolean $readonly ] )
|
| |
setReadonly set the readonly attribute
|
| Parameter |
|
| boolean |
$readonly |
= >>true<< |
|
defaults to true |
|
| Returns |
boolean true |
|
setChecked |
|
public boolean setChecked( [ boolean $checked ] )
|
| |
setChecked set the checked attribute
|
| Parameter |
|
| boolean |
$checked |
= >>true<< |
|
defaults to true |
|
| Returns |
boolean true |
|
setDisabled |
|
public boolean setDisabled( [ boolean $disabled ] )
|
| |
setDisabled set the disabled attribute
|
| Parameter |
|
| boolean |
$disabled |
= >>true<< |
|
defaults to true |
|
| Returns |
boolean true |
|
setName |
|
public boolean setName( string $name )
|
| |
setName set the name attribute
Warning: documentation is missing.
|
| Parameter |
|
|
| Returns |
boolean true |
|
getName |
|
public string getName( )
|
| |
getName returns the name attribute, if set
Warning: documentation is missing.
|
| Returns |
string $method |
|
setValue |
|
public boolean setValue( string $value )
|
| |
setValue set the value attribute
|
| Parameter |
|
|
| Returns |
boolean true |
|
getValue |
|
public string getValue( )
|
| |
getValue returns the value attribute, if set
|
| Returns |
string $method |
|
setSrc |
|
public boolean setSrc( string $src )
|
| |
setSrc set the src attribute of the image tag
|
| Parameter |
|
|
| Returns |
boolean true |
|
getSrc |
|
public string getSrc( )
|
| |
getSrc return the src attribute of the image tag
|
| Returns |
string $src |
|
getForm |
|
public object HTMLFormElement getForm( )
|
| |
getForm return the Form-Element to which the Element is assigned
Returns a reference to the Form-Element.Be careful: If the current Element is notin the scope of a form, the function cause an error!
|
| Returns |
object HTMLFormElement $form |
|
|
Private Method Details |
HTMLInputElement |
|
private void HTMLInputElement( [ string $name, string $value ] )
|
| |
Constructor
|
| Parameter |
|
| string |
$name |
= >>""<< |
|
the name of the element |
|
|
| string |
$value |
= >>""<< |
|
the value of the element |
|
| Returns |
void |
|
|
|
|
|
| PHPDoc 1.0beta |