Since: 8.4

class Node (View source)

Constants

DOCUMENT_POSITION_DISCONNECTED

DOCUMENT_POSITION_PRECEDING

DOCUMENT_POSITION_FOLLOWING

DOCUMENT_POSITION_CONTAINS

DOCUMENT_POSITION_CONTAINED_BY

DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC

Properties

int $nodeType
string $nodeName
string $baseURI
bool $isConnected
Document|null $ownerDocument
Node|null $parentNode
Element|null $parentElement
Node> $childNodes
Node|null $firstChild
Node|null $lastChild
Node|null $previousSibling
Node|null $nextSibling
string|null $nodeValue
string|null $textContent

Methods

getRootNode(array $options = [])

No description

bool
hasChildNodes()

No description

void
normalize()

No description

cloneNode(bool $deep = false)

No description

bool
isEqualNode(Node|null $otherNode)

No description

bool
isSameNode(Node|null $otherNode)

No description

int
compareDocumentPosition(Node $other)

No description

bool
contains(Node|null $other)

No description

string|null
lookupPrefix(string|null $namespace)

No description

string|null
lookupNamespaceURI(string|null $prefix)

No description

bool
isDefaultNamespace(string|null $namespace)

No description

insertBefore(Node $node, Node|null $child)

No description

appendChild(Node $node)

No description

replaceChild(Node $node, Node $child)

No description

removeChild(Node $child)

No description

int
getLineNo()

No description

string
getNodePath()

No description

string|false
C14N(bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)

No description

int|false
C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)

No description

array
__sleep()

No description

void
__wakeup()

No description

Details

Node getRootNode(array $options = [])

No description

Parameters

array $options

Return Value

Node

bool hasChildNodes()

No description

Return Value

bool

void normalize()

No description

Return Value

void

Node cloneNode(bool $deep = false)

No description

Parameters

bool $deep

Return Value

Node

bool isEqualNode(Node|null $otherNode)

No description

Parameters

Node|null $otherNode

Return Value

bool

bool isSameNode(Node|null $otherNode)

No description

Parameters

Node|null $otherNode

Return Value

bool

int compareDocumentPosition(Node $other)

No description

Parameters

Node $other

Return Value

int

bool contains(Node|null $other)

No description

Parameters

Node|null $other

Return Value

bool

string|null lookupPrefix(string|null $namespace)

No description

Parameters

string|null $namespace

Return Value

string|null

string|null lookupNamespaceURI(string|null $prefix)

No description

Parameters

string|null $prefix

Return Value

string|null

bool isDefaultNamespace(string|null $namespace)

No description

Parameters

string|null $namespace

Return Value

bool

Node insertBefore(Node $node, Node|null $child)

No description

Parameters

Node $node
Node|null $child

Return Value

Node

Node appendChild(Node $node)

No description

Parameters

Node $node

Return Value

Node

Node replaceChild(Node $node, Node $child)

No description

Parameters

Node $node
Node $child

Return Value

Node

Node removeChild(Node $child)

No description

Parameters

Node $child

Return Value

Node

int getLineNo()

No description

Return Value

int

string getNodePath()

No description

Return Value

string

string|false C14N(bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)

No description

Parameters

bool $exclusive
bool $withComments
array|null $xpath
array|null $nsPrefixes

Return Value

string|false

int|false C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, array|null $xpath = null, array|null $nsPrefixes = null)

No description

Parameters

string $uri
bool $exclusive
bool $withComments
array|null $xpath
array|null $nsPrefixes

Return Value

int|false

array __sleep()

No description

Return Value

array

void __wakeup()

No description

Return Value

void