DOMEntityReference
class DOMEntityReference extends DOMNode (View source)
Extends DOMNode.
Constants
|
DOCUMENT_POSITION_DISCONNECTED
Since: 8.4
|
|
|
DOCUMENT_POSITION_PRECEDING
Since: 8.4
|
|
|
DOCUMENT_POSITION_FOLLOWING
Since: 8.4
|
|
|
DOCUMENT_POSITION_CONTAINS
Since: 8.4
|
|
|
DOCUMENT_POSITION_CONTAINED_BY
Since: 8.4
|
|
|
DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC
Since: 8.4
|
|
Properties
| string | $nodeName | from DOMNode | |
| string|null | $nodeValue | from DOMNode | |
| int | $nodeType | from DOMNode | |
| DOMNode|null | $parentNode | from DOMNode | |
| DOMNode> | $childNodes | from DOMNode | |
| DOMNode|null | $firstChild | from DOMNode | |
| DOMNode|null | $lastChild | from DOMNode | |
| DOMNode|null | $previousSibling | from DOMNode | |
| DOMNode|null | $nextSibling | from DOMNode | |
| DOMAttr>|null | $attributes | from DOMNode | |
| DOMDocument|null | $ownerDocument | from DOMNode | |
| string|null | $namespaceURI | from DOMNode | |
| string|null | $prefix | from DOMNode | |
| string|null | $localName | from DOMNode | |
| string|null | $baseURI | from DOMNode | |
| string | $textContent | from DOMNode | |
| bool | $isConnected | from DOMNode | |
| DOMElement|null | $parentElement | from DOMNode |
Methods
Checks if feature is supported for specified version
Gets the namespace prefix of the node based on the namespace URI
Checks if the specified namespaceURI is the default namespace or not
Gets the namespace URI of the node based on the prefix
Gets the namespace URI of the node based on the prefix
Canonicalize nodes to a string
Canonicalize nodes to a file.
Forbids serialization unless serialization methods are implemented in a subclass
Forbids unserialization unless unserialization methods are implemented in a subclass
Creates a new DOMEntityReference object
Details
TNode|false
insertBefore(DOMNode $node, null|DOMNode $child = null)
Adds a new child before a reference node
TNode|false
removeChild(DOMNode $child)
Removes child from list of children
TNode|false
appendChild(DOMNode $node)
Adds new child at the end of the children
bool
hasChildNodes()
Checks if node has children
DOMNode|false
cloneNode(bool $deep = false)
Clones a node
void
normalize()
Normalizes the node
bool
isSupported(string $feature, string $version)
Checks if feature is supported for specified version
bool
hasAttributes()
Checks if node has attributes
int
compareDocumentPosition(DOMNode $other)
Compares the position of two nodes
Compares the position of the other node relative to this node.
bool
isSameNode(DOMNode $otherNode)
Indicates if two nodes are the same node
string|null
lookupPrefix(string $namespace)
Gets the namespace prefix of the node based on the namespace URI
bool
isDefaultNamespace(string $namespace)
Checks if the specified namespaceURI is the default namespace or not
string|null
lookupNamespaceURI(string|null $prefix)
Gets the namespace URI of the node based on the prefix
string|null
lookupNamespaceUri(string|null $prefix)
Gets the namespace URI of the node based on the prefix
bool
isEqualNode(DOMNode|null $otherNode)
Checks that both nodes are equal
getFeature($feature, $version)
No description
setUserData($key, $data, $handler)
No description
getUserData($key)
No description
string|null
getNodePath()
Gets an XPath location path for the node
int
getLineNo()
Get line number for a node
string|false
C14N(bool $exclusive = false, bool $withComments = false, null|array $xpath = null, null|array $nsPrefixes = null)
Canonicalize nodes to a string
int|false
C14NFile(string $uri, bool $exclusive = false, bool $withComments = false, null|array $xpath = null, null|array $nsPrefixes = null)
Canonicalize nodes to a file.
bool
contains(DOMNode|DOMNameSpaceNode|null $other)
Checks if node contains other node
DOMNode
getRootNode(array|null $options = null)
Get root node
array
__sleep()
Forbids serialization unless serialization methods are implemented in a subclass
void
__wakeup()
Forbids unserialization unless unserialization methods are implemented in a subclass
__construct(string $name)
Creates a new DOMEntityReference object