php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Dom\Node Class Reference
Inheritance diagram for Dom\Node:
Dom\Attr Dom\CharacterData Dom\Document Dom\DocumentFragment Dom\DocumentType Dom\Element Dom\Entity Dom\EntityReference Dom\Notation

Public Member Functions

 getRootNode (array $options=[])
 
 hasChildNodes ()
 
 normalize ()
 
 cloneNode (bool $deep=false)
 
 isEqualNode (?Node $otherNode)
 
 isSameNode (?Node $otherNode)
 
 compareDocumentPosition (Node $other)
 
 contains (?Node $other)
 
 lookupPrefix (?string $namespace)
 
 lookupNamespaceURI (?string $prefix)
 
 isDefaultNamespace (?string $namespace)
 
 insertBefore (Node $node, ?Node $child)
 
 appendChild (Node $node)
 
 replaceChild (Node $node, Node $child)
 
 removeChild (Node $child)
 
 getLineNo ()
 
 getNodePath ()
 
 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)
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

int $nodeType
 
string $nodeName
 
string $baseURI
 
bool $isConnected
 
Document $ownerDocument
 
Node $parentNode
 
Element $parentElement
 
NodeList $childNodes
 
Node $firstChild
 
Node $lastChild
 
Node $previousSibling
 
Node $nextSibling
 
string $nodeValue
 
string $textContent
 
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
 

Detailed Description

@strict-properties

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

Member Function Documentation

◆ __sleep()

Dom\Node::__sleep ( )

@implementation-alias DOMNode\__sleep

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

◆ __wakeup()

Dom\Node::__wakeup ( )

@implementation-alias DOMNode\__wakeup

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

◆ appendChild()

Dom\Node::appendChild ( Node $node)

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

◆ C14N()

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

@implementation-alias DOMNode\C14N

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

◆ C14NFile()

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

@implementation-alias DOMNode\C14NFile

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

◆ cloneNode()

Dom\Node::cloneNode ( bool $deep = false)

@implementation-alias DOMNode\cloneNode

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

◆ compareDocumentPosition()

Dom\Node::compareDocumentPosition ( Node $other)

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

◆ contains()

Dom\Node::contains ( ?Node $other)

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

◆ getLineNo()

Dom\Node::getLineNo ( )

@implementation-alias DOMNode\getLineNo

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

◆ getNodePath()

Dom\Node::getNodePath ( )

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

◆ getRootNode()

Dom\Node::getRootNode ( array $options = [])

@implementation-alias DOMNode\getRootNode

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

◆ hasChildNodes()

Dom\Node::hasChildNodes ( )

@implementation-alias DOMNode\hasChildNodes

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

◆ insertBefore()

Dom\Node::insertBefore ( Node $node,
?Node $child )

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

◆ isDefaultNamespace()

Dom\Node::isDefaultNamespace ( ?string $namespace)

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

◆ isEqualNode()

Dom\Node::isEqualNode ( ?Node $otherNode)

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

◆ isSameNode()

Dom\Node::isSameNode ( ?Node $otherNode)

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

◆ lookupNamespaceURI()

Dom\Node::lookupNamespaceURI ( ?string $prefix)

@implementation-alias DOMNode\lookupNamespaceURI

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

◆ lookupPrefix()

Dom\Node::lookupPrefix ( ?string $namespace)

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

◆ normalize()

Dom\Node::normalize ( )

@implementation-alias DOMNode\normalize

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

◆ removeChild()

Dom\Node::removeChild ( Node $child)

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

◆ replaceChild()

Dom\Node::replaceChild ( Node $node,
Node $child )

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

Field Documentation

◆ $baseURI

string Dom\Node::$baseURI

@readonly @virtual

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

◆ $childNodes

NodeList Dom\Node::$childNodes

@readonly @virtual

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

◆ $firstChild

Node Dom\Node::$firstChild

@readonly @virtual

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

◆ $isConnected

bool Dom\Node::$isConnected

@readonly @virtual

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

◆ $lastChild

Node Dom\Node::$lastChild

@readonly @virtual

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

◆ $nextSibling

Node Dom\Node::$nextSibling

@readonly @virtual

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

◆ $nodeName

string Dom\Node::$nodeName

@readonly @virtual

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

◆ $nodeType

int Dom\Node::$nodeType

@readonly @virtual

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

◆ $nodeValue

string Dom\Node::$nodeValue

@virtual

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

◆ $ownerDocument

Document Dom\Node::$ownerDocument

@readonly @virtual

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

◆ $parentElement

Element Dom\Node::$parentElement

@readonly @virtual

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

◆ $parentNode

Node Dom\Node::$parentNode

@readonly @virtual

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

◆ $previousSibling

Node Dom\Node::$previousSibling

@readonly @virtual

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

◆ $textContent

string Dom\Node::$textContent

@virtual

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

◆ DOCUMENT_POSITION_CONTAINED_BY

const int Dom\Node::DOCUMENT_POSITION_CONTAINED_BY = 0x10

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

◆ DOCUMENT_POSITION_CONTAINS

const int Dom\Node::DOCUMENT_POSITION_CONTAINS = 0x08

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

◆ DOCUMENT_POSITION_DISCONNECTED

const int Dom\Node::DOCUMENT_POSITION_DISCONNECTED = 0x01

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

◆ DOCUMENT_POSITION_FOLLOWING

const int Dom\Node::DOCUMENT_POSITION_FOLLOWING = 0x04

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

◆ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

const int Dom\Node::DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC = 0x20

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

◆ DOCUMENT_POSITION_PRECEDING

const int Dom\Node::DOCUMENT_POSITION_PRECEDING = 0x02

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


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