Class DOMIT_NodeList

Description

A DOM NodeList implementation

Located in /includes/domit/xml_domit_nodemaps.php (line 22)


	
			
Variable Summary
Array $arNodeList
Method Summary
Object &appendNode (mixed &$node)
Object &createClone ([boolean $deep = false])
string forHTML (string $str, [boolean $doPrint = false])
int getLength ()
Object &item (int $index)
Object &removeNode (Object &$node)
Array toArray ()
string toString ([boolean $htmlSafe = false], [boolean $subEntities = false])
Variables
Array $arNodeList = array() (line 24)
  • var: A container for the nodes in the list
Methods
appendNode (line 50)

Appends a node to the list

  • return: The appended node
Object &appendNode (mixed &$node)
createClone (line 110)

Copies a node and/or its children

  • return: A copy of the node and/or its children
Object &createClone ([boolean $deep = false])
  • boolean $deep: True if all child nodes are also to be cloned
forHTML (line 92)

Formats a string for presentation as HTML

  • return: The HTML formatted string
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
getLength (line 42)

Returns the number of nodes in the list

  • return: The number of nodes in the list
int getLength ()
item (line 31)

Return the node at the specified index

  • return: A reference to the requested node, or null
Object &item (int $index)
  • int $index: The index of the requested node
removeNode (line 60)

Removes the specified node from the list

  • return: A reference to the removed node
Object &removeNode (Object &$node)
  • Object &$node: A reference to the node to be removed
toArray (line 101)

Generates an array representation of the node and its children

  • return: A representation of the node and its children
Array toArray ()
toString (line 128)

Generates a string representation of the node and its children

  • return: The string representation
string toString ([boolean $htmlSafe = false], [boolean $subEntities = false])
  • 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

Documentation generated on Fri, 4 Mar 2005 13:57:43 +1000 by phpDocumentor 1.3.0RC3