php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DOMNode Class Reference
Inheritance diagram for DOMNode:
DOMAttr DOMCharacterData DOMDocument DOMDocumentFragment DOMDocumentType DOMElement DOMEntity DOMEntityReference DOMNotation DOMProcessingInstruction

Public Member Functions

 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

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 309 of file php_dom.stub.php.

Member Function Documentation

◆ __sleep()

DOMNode::__sleep ( )

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

◆ __wakeup()

DOMNode::__wakeup ( )

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

◆ appendChild()

DOMNode::appendChild ( DOMNode $node)
Returns
DOMNode|false

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

◆ C14N()

DOMNode::C14N ( bool $exclusive = false,
bool $withComments = false,
?array $xpath = null,
?array $nsPrefixes = null )

@tentative-return-type

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

◆ C14NFile()

DOMNode::C14NFile ( string $uri,
bool $exclusive = false,
bool $withComments = false,
?array $xpath = null,
?array $nsPrefixes = null )

@tentative-return-type

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

◆ cloneNode()

DOMNode::cloneNode ( bool $deep = false)
Returns
DOMNode|false

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

◆ compareDocumentPosition()

DOMNode::compareDocumentPosition ( DOMNode $other)

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

◆ contains()

DOMNode::contains ( DOMNode|DOMNameSpaceNode|null $other)

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

◆ getLineNo()

DOMNode::getLineNo ( )

@tentative-return-type

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

◆ getNodePath()

DOMNode::getNodePath ( )

@tentative-return-type

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

◆ getRootNode()

DOMNode::getRootNode ( ?array $options = null)

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

◆ hasAttributes()

DOMNode::hasAttributes ( )

@tentative-return-type

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

◆ hasChildNodes()

DOMNode::hasChildNodes ( )

@tentative-return-type

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

◆ insertBefore()

DOMNode::insertBefore ( DOMNode $node,
?DOMNode $child = null )
Returns
DOMNode|false

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

◆ isDefaultNamespace()

DOMNode::isDefaultNamespace ( string $namespace)

@tentative-return-type

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

◆ isEqualNode()

DOMNode::isEqualNode ( ?DOMNode $otherNode)

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

◆ isSameNode()

DOMNode::isSameNode ( DOMNode $otherNode)

@tentative-return-type

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

◆ isSupported()

DOMNode::isSupported ( string $feature,
string $version )

@tentative-return-type

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

◆ lookupNamespaceURI()

DOMNode::lookupNamespaceURI ( ?string $prefix)

@tentative-return-type

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

◆ lookupPrefix()

DOMNode::lookupPrefix ( string $namespace)

@tentative-return-type

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

◆ normalize()

DOMNode::normalize ( )

@tentative-return-type

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

◆ removeChild()

DOMNode::removeChild ( DOMNode $child)
Returns
DOMNode|false

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

◆ replaceChild()

DOMNode::replaceChild ( DOMNode $node,
DOMNode $child )
Returns
DOMNode|false

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

Field Documentation

◆ $attributes

DOMNamedNodeMap DOMNode::$attributes

@readonly @virtual

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

◆ $baseURI

string DOMNode::$baseURI

@readonly @virtual

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

◆ $childNodes

DOMNodeList DOMNode::$childNodes

@readonly @virtual

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

◆ $firstChild

DOMNode DOMNode::$firstChild

@readonly @virtual

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

◆ $isConnected

bool DOMNode::$isConnected

@readonly @virtual

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

◆ $lastChild

DOMNode DOMNode::$lastChild

@readonly @virtual

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

◆ $localName

string DOMNode::$localName

@readonly @virtual

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

◆ $namespaceURI

string DOMNode::$namespaceURI

@readonly @virtual

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

◆ $nextSibling

DOMNode DOMNode::$nextSibling

@readonly @virtual

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

◆ $nodeName

string DOMNode::$nodeName

@readonly @virtual

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

◆ $nodeType

int DOMNode::$nodeType

@readonly @virtual

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

◆ $nodeValue

string DOMNode::$nodeValue

@virtual

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

◆ $ownerDocument

DOMDocument DOMNode::$ownerDocument

@readonly @virtual

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

◆ $parentElement

DOMElement DOMNode::$parentElement

@readonly @virtual

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

◆ $parentNode

DOMNode DOMNode::$parentNode

@readonly @virtual

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

◆ $prefix

string DOMNode::$prefix

@virtual

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

◆ $previousSibling

DOMNode DOMNode::$previousSibling

@readonly @virtual

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

◆ $textContent

string DOMNode::$textContent

@virtual

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

◆ DOCUMENT_POSITION_CONTAINED_BY

const int DOMNode::DOCUMENT_POSITION_CONTAINED_BY = 0x10

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

◆ DOCUMENT_POSITION_CONTAINS

const int DOMNode::DOCUMENT_POSITION_CONTAINS = 0x08

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

◆ DOCUMENT_POSITION_DISCONNECTED

const int DOMNode::DOCUMENT_POSITION_DISCONNECTED = 0x01

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

◆ DOCUMENT_POSITION_FOLLOWING

const int DOMNode::DOCUMENT_POSITION_FOLLOWING = 0x04

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

◆ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

const int DOMNode::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20

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

◆ DOCUMENT_POSITION_PRECEDING

const int DOMNode::DOCUMENT_POSITION_PRECEDING = 0x02

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


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