Class Element
Class Element
- Tokamak\Dom\Node
-
Tokamak\Dom\Element
public
|
#
__construct( DOMDocument $dom, string $name, array $attributes = null, string $content = '' )
Construct a DOM element and add it to the "domNodes" queue to be appended to the parent |
protected
|
|
public
|
#
append(
Append another node (element or component) to this element. Returns the child element for method chaining. |
addDomNode(),
appendComponent(),
appendElement(),
getDom(),
getDomNode(),
hasDomNodes(),
setDom()
|
protected
string
|
$name
The element name ('div', 'a', 'body', etc.) |
|
protected
array
|
$attributes
Associative array of the element's attributes and their values. For "class", the value can also be an array of class names. |
|
protected
string
|
$content
The text content of the element. |
|
protected
DOMElement
|
$node
The underlying DOMElement object |
$COMPONENT_NAMESPACE,
$dom,
$domNodes
|