- Class name: Element
- Namespace: JSMF\Form
- Parent class: DOMElement
\JSMF\Form\Element JSMF\Form\Element::bindToDoc(\JSMF\Form\DOMDocument $doc)
binds the element to DOMDocument, after that changes to the element were allowed
- Visibility: public
- $doc JSMF\Form\DOMDocument
\JSMF\Form\Element JSMF\Form\Element::appendChild(\DOMNode $newChild)
appends child to element
- Visibility: public
- $newChild DOMNode
\JSMF\Form\Element JSMF\Form\Element::addAttributes(Array $attributes)
adds more attributes to the element
- Visibility: public
- $attributes Array
mixed JSMF\Form\Element::addAttribute(String $name, Mixed $value)
Helper function to create attr with value
- Visibility: public
- $name String
- $value Mixed - <p>return \JSMF\Form\Element</p>
Boolean JSMF\Form\Element::hasAttribute(String $name)
returns true if an element attribute is set
- Visibility: public
- $name String
\JSMF\Form\Element JSMF\Form\Element::addClass(String $name)
add a class to the class attribute (if not exists)
- Visibility: public
- $name String
Boolean JSMF\Form\Element::hasClass(String $name)
determines if element has a specific css class
- Visibility: public
- $name String
\JSMF\Form\DOMElement JSMF\Form\Element::getParent(String|null $tagname)
returns the elements direct parent
- Visibility: public
- $tagname String|null
\JSMF\Form\DOMElement JSMF\Form\Element::getParentByClass(String $class)
returns the elements direct parent by class
- Visibility: public
- $class String
\JSMF\Form\Element JSMF\Form\Element::setValue(String $sValue)
Sets the elemnts value
- Visibility: public
- $sValue String