Class DOMIT_ChildNodes_Interface

Description

A parent class for nodes which possess child nodes

Located in /includes/domit/xml_domit_parser.php (line 385)

DOMIT_Node
   |
   --DOMIT_ChildNodes_Interface
Direct descendents
Class Description
DOMIT_Document A class representing the DOM Document
DOMIT_Element A class representing the DOM Element
DOMIT_DocumentFragment A class representing the DOM Document Fragment node
Method Summary
DOMIT_ChildNodes_Interface DOMIT_ChildNodes_Interface ()
Object &appendChild (Object &$child)
object A &getElementsByAttribute ([string $attrName = 'id'], [string $attrValue = ''], [boolean $returnFirstFoundNode = false])
Object &insertBefore (Object &$newChild, Object &$refChild)
Object &removeChild (Object &$oldChild)
Object &replaceChild (Object &$newChild, Object &$oldChild)
Object &selectNodes (string $pattern, mixed $nodeIndex)
void _getElementsByAttribute (object The &$nodelist, string $attrName, string $attrValue, boolean $returnFirstFoundNode, [boolean $foundNode = false])
Variables
Methods
Constructor DOMIT_ChildNodes_Interface (line 389)

Raises error if abstract class is directly instantiated

DOMIT_ChildNodes_Interface DOMIT_ChildNodes_Interface ()
appendChild (line 399)

Appends a node to the childNodes list of the current node

  • return: The appended node
Object &appendChild (Object &$child)
  • Object &$child: The node to be appended

Redefinition of:
DOMIT_Node::appendChild()
Appends a node to the childNodes list of the current node

Redefined in descendants as:
getElementsByAttribute (line 678)

Searches the element tree for an element with the specified attribute name and value.

  • return: NodeList of found elements, or null
object A &getElementsByAttribute ([string $attrName = 'id'], [string $attrValue = ''], [boolean $returnFirstFoundNode = false])
  • string $attrName: The value of the attribute
  • string $attrValue: The name of the attribute
  • boolean $returnFirstFoundNode: True if the first found node is to be returned as a node instead of a nodelist
insertBefore (line 455)

Inserts a node to the childNodes list of the current node

  • return: The inserted 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

Redefinition of:
DOMIT_Node::insertBefore()
Inserts a node to the childNodes list of the current node

Redefined in descendants as:
removeChild (line 620)

Removes a node from the childNodes list of the current node

  • return: The removed node
Object &removeChild (Object &$oldChild)
  • Object &$oldChild: The node to be removed

Redefinition of:
DOMIT_Node::removeChild()
Removes a node from the childNodes list of the current node

Redefined in descendants as:
replaceChild (line 545)

Replaces a node with another

  • return: The new node
Object &replaceChild (Object &$newChild, Object &$oldChild)
  • Object &$newChild: The new node
  • Object &$oldChild: The old node

Redefinition of:
DOMIT_Node::replaceChild()
Replaces a node with another

Redefined in descendants as:
selectNodes (line 748)

Performs an XPath query

  • return: A NodeList containing the found nodes
Object &selectNodes (string $pattern, mixed $nodeIndex)
  • string $pattern: The query pattern
_getElementsByAttribute (line 719)

Searches the element tree for an element with the specified attribute name and value.

void _getElementsByAttribute (object The &$nodelist, string $attrName, string $attrValue, boolean $returnFirstFoundNode, [boolean $foundNode = false])
  • object The &$nodelist: node list of found elements
  • string $attrName: The value of the attribute
  • string $attrValue: The name of the attribute
  • boolean $returnFirstFoundNode: True if the first found node is to be returned as a node instead of a nodelist
  • boolean $foundNode: True the node has been found

Inherited Methods

Inherited From DOMIT_Node

DOMIT_Node::DOMIT_Node()
DOMIT_Node::appendChild()
DOMIT_Node::clearReferences()
DOMIT_Node::cloneNode()
DOMIT_Node::forHTML()
DOMIT_Node::getChildNodeIndex()
DOMIT_Node::getElementsByAttributePath()
DOMIT_Node::getElementsByPath()
DOMIT_Node::getNamedElements()
DOMIT_Node::getText()
DOMIT_Node::getTypedNodes()
DOMIT_Node::getValuedNodes()
DOMIT_Node::hasAttributes()
DOMIT_Node::hasChildNodes()
DOMIT_Node::insertBefore()
DOMIT_Node::isSupported()
DOMIT_Node::normalize()
DOMIT_Node::nvl()
DOMIT_Node::onLoad()
DOMIT_Node::removeChild()
DOMIT_Node::replaceChild()
DOMIT_Node::setOwnerDocument()
DOMIT_Node::toArray()
DOMIT_Node::toNormalizedString()
DOMIT_Node::_constructor()

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