BlueSpice MediaWiki master
 All Classes Namespaces Files Functions Variables Groups Pages
DOMNode Class Reference
Inheritance diagram for DOMNode:

Public Member Functions

 insertBefore (DOMNode $newnode, DOMNode $refnode=null)
 
 replaceChild (DOMNode $newnode, DOMNode $oldnode)
 
 removeChild (DOMNode $oldnode)
 
 appendChild (DOMNode $newnode)
 
 hasChildNodes ()
 
 cloneNode ($deep=null)
 
 normalize ()
 
 isSupported ($feature, $version)
 
 hasAttributes ()
 
 compareDocumentPosition (DOMNode $other)
 
 isSameNode (DOMNode $node)
 
 lookupPrefix ($namespaceURI)
 
 isDefaultNamespace ($namespaceURI)
 
 lookupNamespaceUri ($prefix)
 
 isEqualNode (DOMNode $arg)
 
 getFeature ($feature, $version)
 
 setUserData ($key, $data, $handler)
 
 getUserData ($key)
 
 getNodePath ()
 
 getLineNo ()
 
 C14N ($exclusive, $with_comments, array $xpath=null, $ns_prefixes=null)
 
 C14NFile ($uri, $exclusive, array $with_comments, array $xpath=null, $ns_prefixes=null)
 

Public Attributes

 $nodeName
 
 $nodeValue
 
 $nodeType
 
 $parentNode
 
 $childNodes
 
 $firstChild
 
 $lastChild
 
 $previousSibling
 
 $nextSibling
 
 $attributes
 
 $ownerDocument
 
 $namespaceURI
 
 $prefix
 
 $localName
 
 $baseURI
 
 $textContent
 

Detailed Description

Member Function Documentation

DOMNode::appendChild ( DOMNode  $newnode)

Adds new child at the end of the children DOMNode $newnode The appended child.

Returns
DOMNode The node added.
Since
5.0
DOMNode::C14N (   $exclusive,
  $with_comments,
array  $xpath = null,
  $ns_prefixes = null 
)

Canonicalize nodes to a string

Parameters
bool$exclusive[optional] Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
bool$with_comments[optional] Retain comments in output.
array$xpath[optional] An array of xpaths to filter the nodes by.
array$ns_prefixes[optional] An array of namespace prefixes to filter the nodes by.
Returns
string canonicalized nodes as a string or FALSE on failure
DOMNode::C14NFile (   $uri,
  $exclusive,
array  $with_comments,
array  $xpath = null,
  $ns_prefixes = null 
)

Canonicalize nodes to a file.

Parameters
$uriNumber of bytes written or FALSE on failure
$exclusive[optional] Enable exclusive parsing of only the nodes matched by the provided xpath or namespace prefixes.
$with_comments[optional] Retain comments in output.
$xpath[optional] An array of xpaths to filter the nodes by.
$ns_prefixes[optional] An array of namespace prefixes to filter the nodes by.
Returns
int Number of bytes written or FALSE on failure
DOMNode::cloneNode (   $deep = null)

Clones a node bool $deep [optional] Indicates whether to copy all descendant nodes. This parameter is defaulted to false.

Returns
DOMNode The cloned node.
Since
5.0
DOMNode::compareDocumentPosition ( DOMNode  $other)
Parameters
DOMNode$other
DOMNode::getFeature (   $feature,
  $version 
)
Parameters
$feature
$version
Returns
mixed
DOMNode::getLineNo ( )
DOMNode::getNodePath ( )

Gets an XPath location path for the node

Returns
string the XPath, or NULL in case of an error. 5.3.0
DOMNode::getUserData (   $key)
Parameters
$key
Returns
mixed
DOMNode::hasAttributes ( )

Checks if node has attributes bool true on success or false on failure. 5.0

DOMNode::hasChildNodes ( )
DOMNode::insertBefore ( DOMNode  $newnode,
DOMNode  $refnode = null 
)

Adds a new child before a reference node DOMNode $newnode The new node.

Parameters
DOMNode$refnode[optional]

The reference node. If not supplied, newnode is appended to the children.

Returns
DOMNode The inserted node.
Since
5.0
DOMNode::isDefaultNamespace (   $namespaceURI)

Checks if the specified namespaceURI is the default namespace or not string $namespaceURI The namespace URI to look for.

Returns
bool Return true if namespaceURI is the default namespace, false otherwise.
Since
5.0
DOMNode::isEqualNode ( DOMNode  $arg)
Parameters
DOMNode$arg
Returns
boolean
DOMNode::isSameNode ( DOMNode  $node)

Indicates if two nodes are the same node DOMNode $node The compared node.

Returns
bool true on success or false on failure.
Since
5.0
DOMNode::isSupported (   $feature,
  $version 
)

Checks if feature is supported for specified version string $feature The feature to test. See the example of DOMImplementation::hasFeature for a list of features.

Parameters
string$version

The version number of the feature to test.

Returns
bool true on success or false on failure.
Since
5.0
DOMNode::lookupNamespaceUri (   $prefix)

Gets the namespace URI of the node based on the prefix string $prefix The prefix of the namespace.

Returns
string The namespace URI of the node.
Since
5.0
DOMNode::lookupPrefix (   $namespaceURI)

Gets the namespace prefix of the node based on the namespace URI string $namespaceURI The namespace URI.

Returns
string The prefix of the namespace.
Since
5.0
DOMNode::normalize ( )

Normalizes the node void 5.0

DOMNode::removeChild ( DOMNode  $oldnode)

Removes child from list of children DOMNode $oldnode The removed child.

Returns
DOMNode If the child could be removed the functions returns the old child.
Since
5.0
DOMNode::replaceChild ( DOMNode  $newnode,
DOMNode  $oldnode 
)

Replaces a child DOMNode $newnode The new node. It must be a member of the target document, i.e. created by one of the DOMDocument->createXXX() methods or imported in the document by .

Parameters
DOMNode$oldnode

The old node.

Returns
DOMNode The old node or false if an error occur.
Since
5.0
DOMNode::setUserData (   $key,
  $data,
  $handler 
)
Parameters
$key
$data
$handler

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