Dom_FormElement
public abstract class Dom_FormElement
| Field Summary | |
|---|---|
| protected DOMElement | This could be a single DOMElement or an array of DOMElement |
| protected Dom_Form | |
| Constructor Summary | |
|---|---|
__construct(DOMElement element, Dom_Form form) __construct |
|
| Method Summary | |
|---|---|
| void | disable() Disable this allement, add a disable attribute to the node |
| string | getAttribute(mixed name) Set the name of this element |
| Dom_Form | getForm() Get the parent DOM form object |
| string | getName() Get the name of this element |
| DOMElement | getNode() Get the DomElement node for this form element |
| Dom_Template | Get the Element's Template |
| string | getType() Return the form element type attribute |
| abstract mixed | getValue() Return the value of the element, or the selected value. |
| boolean | get the disabled state of this node |
| void | setAttribute(string name, string value) Set the attribute name and value |
| void | setName(string name) Set the name of this element |
| abstract void | setValue(string value) Set the value of a form element. |
protected DOMElement $element = null
This could be a single DOMElement or an array of DOMElement
protected Dom_Form $form = null
public __construct(DOMElement element, Dom_Form form)
__construct
public void disable()
Disable this allement, add a disable attribute to the node
public string getAttribute(mixed name)
Set the name of this element
public Dom_Form getForm()
Get the parent DOM form object
public string getName()
Get the name of this element
public DOMElement getNode()
Get the DomElement node for this form element
public Dom_Template getTemplate()
Get the Element's Template
public string getType()
Return the form element type attribute
public abstract mixed getValue()
Return the value of the element, or the selected value.
public boolean isDisabled()
get the disabled state of this node
public void setAttribute(string name, string value)
Set the attribute name and value
public void setName(string name)
Set the name of this element
public abstract void setValue(string value)
Set the value of a form element.
Set value behaves different for different elements:
All form elements must use this class/interface.