Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: /usr/local/apache_8080/htdocs/devel/Intra/class/phpdom/domxml_characterdata.php
Document Object Model for PHP - phpDOM

CharacterData

Node
   |
  +-- CharacterData

The CharacterData class

 

private abstract class CharacterData extends Node

The CharacterData class
extends the Node class with a set of methods to access the character data of the node.The new method in the DOM/XML library "set_content" is the basis for this class tree!

AuthorsDietmar Glachs <dietmar.glachs@salzburgresearch.at>
Versiondevel.0.4
Copyright2001 Salzburg Research Gesellschaft m.b.H.

 
Direct known subclasses: Text

Methods inherited from Node

Node, Tag, appendChild, cloneNode, removeChild, getOwnerDocument, getFirstChild, getNextChild, getLastChild, getNodeById, hasChildNodes, hasMoreElements, getParentNode, getParent, getChildNodes, setNodeValue, getNodeValue, getAttributes, toString, getNodeName, getNodeType, addElement, _internal_toString, _internal_cloneNode, _internal_selfCheck, _internal_getNodeById

Public Method Summary

void

CharacterData()

Constructor
void

setData(string $data)

setData sets the text portion of the text element
string

getData()

getText returns the text
void

appendData(string $strappend)

Append the string to the end of the character data of the node.
void

deleteData(int $offset, int $count)

remove a range of characters from the node.
void

replaceData(int $offset, int $count, string $replacement)

replace a range of characters from the node with a given string
void

insertData(int $offset, string $arg)

insert a string portion at a given offset
string

substringData(int $offset, int $count)

retrieves a text portion of the current string, starting at a given offset
int

getLength()

retrieves the length of the current node value

Fields inherited from Node

$nodeName, $nodevalue, $attribute, $node

Private Field Summary

string

$data

Contains the data for the text section

Public Method Details

CharacterData

public void CharacterData( )

  Constructor

Returns void


setData

public void setData( string $data )

  setData sets the text portion of the text element

Parameter
string $data
Returns void


getData

public string getData( )

  getText returns the text

Returns string $data


appendData

public void appendData( string $strappend )

  Append the string to the end of the character data of the node.
The given string will be appended.

Parameter
string $strappend
string to append
Returns void


deleteData

public void deleteData( int $offset, int $count )

  remove a range of characters from the node.

Parameter
int $offset
offset from which to start removing
int $count
number of characters to remove
Returns void


replaceData

public void replaceData( int $offset, int $count, string $replacement )

  replace a range of characters from the node with a given string

Parameter
int $offset
offset from which to start removing
int $count
number of characters to remove
string $replacement
replacement string
Returns void


insertData

public void insertData( int $offset, string $arg )

  insert a string portion at a given offset

Parameter
int $offset
offset from which to start removing
string $arg
string to insert
Returns void


substringData

public string substringData( int $offset, int $count )

  retrieves a text portion of the current string, starting at a given offset

Parameter
int $offset
offset from which to start removing
int $count
number of characters to return
Returns string

The substring


getLength

public int getLength( )

  retrieves the length of the current node value

Returns int

The length of the string


Private Field Details

$data

private string $data

>>""<<

Contains the data for the text section



Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta