php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DOMCharacterData Class Reference
Inheritance diagram for DOMCharacterData:
DOMNode DOMChildNode DOMComment DOMText DOMCdataSection

Public Member Functions

 appendData (string $data)
 
 substringData (int $offset, int $count)
 
 insertData (int $offset, string $data)
 
 deleteData (int $offset, int $count)
 
 replaceData (int $offset, int $count, string $data)
 
 replaceWith (... $nodes)
 
 remove ()
 
 before (... $nodes)
 
 after (... $nodes)
 
- Public Member Functions inherited from DOMNode
 appendChild (DOMNode $node)
 
 C14N (bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 C14NFile (string $uri, bool $exclusive=false, bool $withComments=false, ?array $xpath=null, ?array $nsPrefixes=null)
 
 cloneNode (bool $deep=false)
 
 getLineNo ()
 
 getNodePath ()
 
 hasAttributes ()
 
 hasChildNodes ()
 
 insertBefore (DOMNode $node, ?DOMNode $child=null)
 
 isDefaultNamespace (string $namespace)
 
 isSameNode (DOMNode $otherNode)
 
 isEqualNode (?DOMNode $otherNode)
 
 isSupported (string $feature, string $version)
 
 lookupNamespaceURI (?string $prefix)
 
 lookupPrefix (string $namespace)
 
 normalize ()
 
 removeChild (DOMNode $child)
 
 replaceChild (DOMNode $node, DOMNode $child)
 
 contains (DOMNode|DOMNameSpaceNode|null $other)
 
 getRootNode (?array $options=null)
 
 compareDocumentPosition (DOMNode $other)
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

string $data
 
int $length
 
DOMElement $previousElementSibling
 
DOMElement $nextElementSibling
 
- Data Fields inherited from DOMNode
const int DOCUMENT_POSITION_DISCONNECTED = 0x01
 
const int DOCUMENT_POSITION_PRECEDING = 0x02
 
const int DOCUMENT_POSITION_FOLLOWING = 0x04
 
const int DOCUMENT_POSITION_CONTAINS = 0x08
 
const int DOCUMENT_POSITION_CONTAINED_BY = 0x10
 
const int DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20
 
string $nodeName
 
string $nodeValue
 
int $nodeType
 
DOMNode $parentNode
 
DOMElement $parentElement
 
DOMNodeList $childNodes
 
DOMNode $firstChild
 
DOMNode $lastChild
 
DOMNode $previousSibling
 
DOMNode $nextSibling
 
DOMNamedNodeMap $attributes
 
bool $isConnected
 
DOMDocument $ownerDocument
 
string $namespaceURI
 
string $prefix
 
string $localName
 
string $baseURI
 
string $textContent
 

Detailed Description

Definition at line 623 of file php_dom.stub.php.

Member Function Documentation

◆ after()

DOMCharacterData::after ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMElement\after

Implements DOMChildNode.

Definition at line 680 of file php_dom.stub.php.

◆ appendData()

DOMCharacterData::appendData ( string $data)

@tentative-return-type

Definition at line 647 of file php_dom.stub.php.

◆ before()

DOMCharacterData::before ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMElement\before

Implements DOMChildNode.

Definition at line 674 of file php_dom.stub.php.

◆ deleteData()

DOMCharacterData::deleteData ( int $offset,
int $count )

@tentative-return-type

Definition at line 656 of file php_dom.stub.php.

◆ insertData()

DOMCharacterData::insertData ( int $offset,
string $data )

@tentative-return-type

Definition at line 653 of file php_dom.stub.php.

◆ remove()

DOMCharacterData::remove ( )

@implementation-alias DOMElement\remove

Implements DOMChildNode.

Definition at line 668 of file php_dom.stub.php.

◆ replaceData()

DOMCharacterData::replaceData ( int $offset,
int $count,
string $data )

@tentative-return-type

Definition at line 659 of file php_dom.stub.php.

◆ replaceWith()

DOMCharacterData::replaceWith ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMElement\replaceWith

Implements DOMChildNode.

Definition at line 665 of file php_dom.stub.php.

◆ substringData()

DOMCharacterData::substringData ( int $offset,
int $count )
Returns
string|false

Definition at line 650 of file php_dom.stub.php.

Field Documentation

◆ $data

string DOMCharacterData::$data

@virtual

Definition at line 626 of file php_dom.stub.php.

◆ $length

int DOMCharacterData::$length

@readonly @virtual

Definition at line 632 of file php_dom.stub.php.

◆ $nextElementSibling

DOMElement DOMCharacterData::$nextElementSibling

@readonly @virtual

Definition at line 644 of file php_dom.stub.php.

◆ $previousElementSibling

DOMElement DOMCharacterData::$previousElementSibling

@readonly @virtual

Definition at line 638 of file php_dom.stub.php.


The documentation for this class was generated from the following file: