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