Packageindex Classtrees Modulegroups Elementlist Report XML Files

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

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

 
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 Element

Element, getTagName, getElementById, _internal_getElementById, getElementsByTagName, _internal_getElementsByTagName, setAttribute, setId, 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

setType(string $type)

setType set the type attribute
string

getType()

getType returns the type attribute, if set
boolean

setReadonly([ boolean $readonly ])

setReadonly set the readonly attribute
boolean

setChecked([ boolean $checked ])

setChecked set the checked attribute
boolean

setDisabled([ boolean $disabled ])

setDisabled set the disabled attribute
boolean

setName(string $name)

setName set the name attributeWarning: documentation is missing.
string

getName()

getName returns the name attribute, if setWarning: documentation is missing.
boolean

setValue(string $value)

setValue set the value attribute
string

getValue()

getValue returns the value attribute, if set
boolean

setSrc(string $src)

setSrc set the src attribute of the image tag
string

getSrc()

getSrc return the src attribute of the image tag
object HTMLFormElement

getForm()

getForm return the Form-Element to which the Element is assigned

Private Method Summary

void

HTMLInputElement([ string $name, string $value ])

Constructor

Fields inherited from Element

$tagName

Fields inherited from Node

$nodeName, $nodevalue, $attribute, $node

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
string $name
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
string $value
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
string $src
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



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta