Class DOMIT_TextNode

Description

A class representing the DOM Text Node

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

DOMIT_Node
   |
   --DOMIT_CharacterData
      |
      --DOMIT_TextNode
Direct descendents
Class Description
DOMIT_CDATASection A class representing the DOM CDATA Section
Method Summary
DOMIT_TextNode DOMIT_TextNode (string $data)
Object &cloneNode ([boolean $deep = false])
string getText ()
void setText (string $data)
Object splitText (int $offset)
Array toArray ()
string toString ([boolean $htmlSafe = false], [boolean $subEntities = true])
Variables
Methods
Constructor DOMIT_TextNode (line 2433)

DOM Text Node constructor

DOMIT_TextNode DOMIT_TextNode (string $data)
  • string $data: The text of the node
cloneNode (line 2506)

Copies a node and/or its children

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

Redefinition of:
DOMIT_Node::cloneNode()
Copies a node and/or its children
getText (line 2444)

Returns the text contained in the current node

  • return: The text of the current node
string getText ()

Redefinition of:
DOMIT_Node::getText()
Returns the concatented text of the current node and its children
setText (line 2452)

Sets the text contained in the current node to $data.

void setText (string $data)
  • string $data: The text data of the node
splitText (line 2461)

Splits a single node into multiple nodes, based on the specified offset

  • return: The newly created text node
Object splitText (int $offset)
  • int $offset: The offset point for the split
toArray (line 2497)

Generates an array representation of the node and its children

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

Redefinition of:
DOMIT_Node::toArray()
Generates an array representation of the node and its children
toString (line 2519)

Generates a string representation of the node and its children

  • return: The string representation
string toString ([boolean $htmlSafe = false], [boolean $subEntities = true])
  • boolean $htmlSafe: True if HTML readable output is desired
  • boolean $subEntities: True if illegal xml characters should be converted to entities

Redefined in descendants as:

Inherited Methods

Inherited From DOMIT_CharacterData

DOMIT_CharacterData::DOMIT_CharacterData()
DOMIT_CharacterData::appendData()
DOMIT_CharacterData::deleteData()
DOMIT_CharacterData::getData()
DOMIT_CharacterData::getLength()
DOMIT_CharacterData::insertData()
DOMIT_CharacterData::replaceData()
DOMIT_CharacterData::substringData()

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:52 +1000 by phpDocumentor 1.3.0RC3