Method |
Description |
|
__construct ( ) |
Creates a unique spl hash for this node. |
|
__destruct ( ) |
Attempts to clear out any object references. |
|
__get ( string $key ) : mixed |
Magic get method for attributes and certain methods. |
|
__toString ( ) : string |
Simply calls the outer text method. |
|
ancestorByTag ( string $tag ) : AbstractNode |
Function to locate a specific ancestor tag in the path to the root. |
|
delete ( ) : void |
Removes this node and all its children from the
DOM tree. |
|
find ( string $selector, integer $nth = null ) : array | AbstractNode |
Find elements by css selector |
|
getAncestor ( integer $id ) : null | AbstractNode |
Attempts to get an ancestor node by the given id. |
|
getAttribute ( string $key ) : mixed |
A wrapper method that simply calls the getAttribute method
on the tag of this node. |
|
getAttributes ( ) : array |
A wrapper method that simply calls the getAttribute method
on the tag of this node. |
|
getParent ( ) : AbstractNode |
Returns the parent of node. |
|
getTag ( ) : Tag |
Gets the tag object of this node. |
|
id ( ) |
Returns the id of this object. |
|
innerHtml ( ) : string |
Gets the inner html of this node. |
|
isAncestor ( integer $id ) : boolean |
Checks if the given node id is an ancestor of
the current node. |
|
nextSibling ( ) : AbstractNode |
Attempts to get the next sibling. |
|
outerHtml ( ) : string |
Gets the html of this node, including it's own
tag. |
|
previousSibling ( ) : AbstractNode |
Attempts to get the previous sibling |
|
propagateEncoding ( stringEncode\Encode $encode ) : void |
Sets the encoding class to this node. |
|
removeAllAttributes ( ) : void |
A wrapper method that simply calls the removeAllAttributes
method on the tag of this node. |
|
removeAttribute ( string $key ) : void |
A wrapper method that simply calls the removeAttribute method
on the tag of this node. |
|
setAttribute ( string $key, string $value ) |
A wrapper method that simply calls the setAttribute method
on the tag of this node. |
|
setParent ( InnerNode $parent ) |
Sets the parent node. |
|
text ( ) : string |
Gets the text of this node (if there is any text). |
|