Raises error if abstract class is directly instantiated
DOMIT_Lite_Node
DOMIT_Lite_Node
()
Appends a node to the childNodes list of the current node
Object
&appendChild
(Object &$child)
-
Object
&$child: The node to be appended
Redefined in descendants as:
Clears previousSibling, nextSibling, and parentNode references from a node that has been removed
void
clearReferences
()
Copies a node and/or its children
Object
&cloneNode
([boolean $deep = false])
-
boolean
$deep: True if all child nodes are also to be cloned
Redefined in descendants as:
Formats a string for presentation as HTML
string
forHTML
(string $str, [boolean $doPrint = false])
-
string
$str: The string to be formatted
-
boolean
$doPrint: True if the string is to be sent directly to output
Returns the index of the specified node in a childNodes list
int
getChildNodeIndex
(Array &$arr, Object &$child)
-
Array
&$arr: The childNodes array to be searched
-
Object
&$child: The node targeted by the search
Retrieves an element or DOMIT_NodeList of elements corresponding to an Xpath-like expression.
mixed
&getElementsByPath
(string $pattern, int $nodeIndex)
-
string
$pattern: The query pattern
-
int
$nodeIndex: If a single node is to be returned (rather than the entire NodeList) the index of that node
Redefined in descendants as:
Adds elements with the specified tag name to a NodeList collection
void
getNamedElements
(Object &$nodeList, string $tagName)
-
Object
&$nodeList: The NodeList collection
-
string
$tagName: The tag name of matching elements
Redefined in descendants as:
Returns the concatented text of the current node and its children
string
getText
()
Redefined in descendants as:
Determines whether a node has any children
boolean
hasChildNodes
()
Inserts a node to the childNodes list of the current node
Object
&insertBefore
(Object &$newChild, Object &$refChild)
-
Object
&$newChild: The node to be inserted
-
Object
&$refChild: The node before which the insertion is to occur
Redefined in descendants as:
Tests whether a value is null, and if so, returns a default value
mixed
&nvl
(mixed &$value, mixed $default)
-
mixed
&$value: The value to be tested
-
mixed
$default: The default value
A node event that can be set to fire upon document loading, used for node initialization
void
onLoad
()
Removes a node from the childNodes list of the current node
Object
&removeChild
(Object &$oldChild)
-
Object
&$oldChild: The node to be removed
Redefined in descendants as:
Replaces a node with another
Object
&replaceChild
(Object &$newChild, Object &$oldChild)
-
Object
&$newChild: The new node
-
Object
&$oldChild: The old node
Redefined in descendants as:
Sets the ownerDocument property of a node to the containing DOMIT_Document
void
setOwnerDocument
(Object &$rootNode)
-
Object
&$rootNode: A reference to the document element of the DOMIT_Document
Generates an array representation of the node and its children
Array
toArray
()
Redefined in descendants as:
Generates a normalized (formatted for readability) representation of the node and its children
string
toNormalizedString
([boolean $htmlSafe = false], [boolean $subEntities = true])
-
boolean
$htmlSafe: True if HTML readable output is desired
-
boolean
$subEntities: True if illegal xml characters in text nodes and attributes should be converted to entities
DOMIT_Lite_Node constructor, assigns a uid
void
_constructor
()