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

Public Member Functions

 getAttribute ($name)
 
 setAttribute ($name, $value)
 
 removeAttribute ($name)
 
 getAttributeNode ($name)
 
 setAttributeNode (DOMAttr $attr)
 
 removeAttributeNode (DOMAttr $oldnode)
 
 getElementsByTagName ($name)
 
 getAttributeNS ($namespaceURI, $localName)
 
 setAttributeNS ($namespaceURI, $qualifiedName, $value)
 
 removeAttributeNS ($namespaceURI, $localName)
 
 getAttributeNodeNS ($namespaceURI, $localName)
 
 setAttributeNodeNS (DOMAttr $attr)
 
 getElementsByTagNameNS ($namespaceURI, $localName)
 
 hasAttribute ($name)
 
 hasAttributeNS ($namespaceURI, $localName)
 
 setIdAttribute ($name, $isId)
 
 setIdAttributeNS ($namespaceURI, $localName, $isId)
 
 setIdAttributeNode (DOMAttr $attr, $isId)
 
 __construct ($name, $value, $uri)
 
 insertBefore (DOMNode $newnode, $refnode=null)
 
 replaceChild (DOMNode $newnode, DOMNode $oldnode)
 
 removeChild (DOMNode $oldnode)
 
- Public Member Functions inherited from DOMNode
 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

 $parentNode
 
 $firstChild
 
 $lastChild
 
 $previousSibling
 
 $nextSibling
 
 $schemaTypeInfo
 
 $tagName
 
- Public Attributes inherited from DOMNode
 $nodeName
 
 $nodeValue
 
 $nodeType
 
 $parentNode
 
 $childNodes
 
 $firstChild
 
 $lastChild
 
 $previousSibling
 
 $nextSibling
 
 $attributes
 
 $ownerDocument
 
 $namespaceURI
 
 $prefix
 
 $localName
 
 $baseURI
 
 $textContent
 

Detailed Description

Constructor & Destructor Documentation

Member Function Documentation

DOMElement::getAttribute (   $name)

Returns value of attribute string $name The name of the attribute.

Returns
string The value of the attribute, or an empty string if no attribute with the given name is found.
Since
5.0
DOMElement::getAttributeNode (   $name)

Returns attribute node string $name The name of the attribute.

Returns
DOMAttr The attribute node.
Since
5.0
DOMElement::getAttributeNodeNS (   $namespaceURI,
  $localName 
)

Returns attribute node string $namespaceURI The namespace URI.

Parameters
string$localName

The local name.

Returns
DOMAttr The attribute node.
Since
5.0
DOMElement::getAttributeNS (   $namespaceURI,
  $localName 
)

Returns value of attribute string $namespaceURI The namespace URI.

Parameters
string$localName

The local name.

Returns
string The value of the attribute, or an empty string if no attribute with the given localName and namespaceURI is found.
Since
5.0
DOMElement::getElementsByTagName (   $name)

Gets elements by tagname string $name The tag name. Use * to return all elements within the element tree.

Returns
DOMNodeList This function returns a new instance of the class DOMNodeList of all matched elements.
Since
5.0
DOMElement::getElementsByTagNameNS (   $namespaceURI,
  $localName 
)

Get elements by namespaceURI and localName string $namespaceURI The namespace URI.

Parameters
string$localName

The local name. Use * to return all elements within the element tree.

Returns
DOMNodeList This function returns a new instance of the class DOMNodeList of all matched elements in the order in which they are encountered in a preorder traversal of this element tree.
Since
5.0
DOMElement::hasAttribute (   $name)

Checks to see if attribute exists string $name The attribute name.

Returns
bool true on success or false on failure.
Since
5.0
DOMElement::hasAttributeNS (   $namespaceURI,
  $localName 
)

Checks to see if attribute exists string $namespaceURI The namespace URI.

Parameters
string$localName

The local name.

Returns
bool true on success or false on failure.
Since
5.0
DOMElement::insertBefore ( DOMNode  $newnode,
  $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
DOMElement::removeAttribute (   $name)

Removes attribute string $name The name of the attribute.

Returns
bool true on success or false on failure.
Since
5.0
DOMElement::removeAttributeNode ( DOMAttr  $oldnode)

Removes attribute DOMAttr $oldnode The attribute node.

Returns
bool true on success or false on failure.
Since
5.0
DOMElement::removeAttributeNS (   $namespaceURI,
  $localName 
)

Removes attribute string $namespaceURI The namespace URI.

Parameters
string$localName

The local name.

Returns
bool true on success or false on failure.
Since
5.0
DOMElement::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
DOMElement::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
DOMElement::setAttribute (   $name,
  $value 
)

Adds new attribute string $name The name of the attribute.

Parameters
string$value

The value of the attribute.

Returns
DOMAttr The new DOMAttr or false if an error occured.
Since
5.0
DOMElement::setAttributeNode ( DOMAttr  $attr)

Adds new attribute node to element DOMAttr $attr The attribute node.

Returns
DOMAttr old node if the attribute has been replaced or .
Since
5.0
DOMElement::setAttributeNodeNS ( DOMAttr  $attr)
DOMElement::setAttributeNS (   $namespaceURI,
  $qualifiedName,
  $value 
)

Adds new attribute string $namespaceURI The namespace URI.

Parameters
string$qualifiedName

The qualified name of the attribute, as prefix:tagname.

Parameters
string$value

The value of the attribute.

Returns
void
Since
5.0
DOMElement::setIdAttribute (   $name,
  $isId 
)

Declares the attribute specified by name to be of type ID string $name The name of the attribute.

Parameters
bool$isId

Set it to true if you want name to be of type ID, false otherwise.

Returns
void
Since
5.0
DOMElement::setIdAttributeNode ( DOMAttr  $attr,
  $isId 
)

Declares the attribute specified by node to be of type ID DOMAttr $attr The attribute node.

Parameters
bool$isId

Set it to true if you want name to be of type ID, false otherwise.

Returns
void
Since
5.0
DOMElement::setIdAttributeNS (   $namespaceURI,
  $localName,
  $isId 
)

Declares the attribute specified by local name and namespace URI to be of type ID string $namespaceURI The namespace URI of the attribute.

Parameters
string$localName

The local name of the attribute, as prefix:tagname.

Parameters
bool$isId

Set it to true if you want name to be of type ID, false otherwise.

Returns
void
Since
5.0

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