Class DOMIT_Lite_ChildNodes_Interface

Description

A parent class for nodes which possess child nodes

Located in /includes/domit/xml_domit_lite_parser.php (line 307)

DOMIT_Lite_Node
   |
   --DOMIT_Lite_ChildNodes_Interface
Direct descendents
Class Description
DOMIT_Lite_Document A class representing the DOM Document
DOMIT_Lite_Element A class representing the DOM Element
Method Summary
DOMIT_Lite_ChildNodes_Interface DOMIT_Lite_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)
void _getElementsByAttribute (object The &$nodelist, string $attrName, string $attrValue, boolean $returnFirstFoundNode, [boolean $foundNode = false])
Variables
Methods
Constructor DOMIT_Lite_ChildNodes_Interface (line 311)

Raises error if abstract class is directly instantiated

DOMIT_Lite_ChildNodes_Interface DOMIT_Lite_ChildNodes_Interface ()
appendChild (line 321)

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_Lite_Node::appendChild()
Appends a node to the childNodes list of the current node

Redefined in descendants as:
getElementsByAttribute (line 547)

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 363)

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_Lite_Node::insertBefore()
Inserts a node to the childNodes list of the current node

Redefined in descendants as:
removeChild (line 489)

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_Lite_Node::removeChild()
Removes a node from the childNodes list of the current node

Redefined in descendants as:
replaceChild (line 435)

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_Lite_Node::replaceChild()
Replaces a node with another

Redefined in descendants as:
_getElementsByAttribute (line 588)

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_Lite_Node

DOMIT_Lite_Node::DOMIT_Lite_Node()
DOMIT_Lite_Node::appendChild()
DOMIT_Lite_Node::clearReferences()
DOMIT_Lite_Node::cloneNode()
DOMIT_Lite_Node::forHTML()
DOMIT_Lite_Node::getChildNodeIndex()
DOMIT_Lite_Node::getElementsByPath()
DOMIT_Lite_Node::getNamedElements()
DOMIT_Lite_Node::getText()
DOMIT_Lite_Node::hasChildNodes()
DOMIT_Lite_Node::insertBefore()
DOMIT_Lite_Node::nvl()
DOMIT_Lite_Node::onLoad()
DOMIT_Lite_Node::removeChild()
DOMIT_Lite_Node::replaceChild()
DOMIT_Lite_Node::setOwnerDocument()
DOMIT_Lite_Node::toArray()
DOMIT_Lite_Node::toNormalizedString()
DOMIT_Lite_Node::_constructor()

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