php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
DOMElement Class Reference
Inheritance diagram for DOMElement:
DOMNode DOMParentNode DOMChildNode

Public Member Functions

 __construct (string $qualifiedName, ?string $value=null, string $namespace="")
 
 getAttribute (string $qualifiedName)
 
 getAttributeNames ()
 
 getAttributeNS (?string $namespace, string $localName)
 
 getAttributeNode (string $qualifiedName)
 
 getAttributeNodeNS (?string $namespace, string $localName)
 
 getElementsByTagName (string $qualifiedName)
 
 getElementsByTagNameNS (?string $namespace, string $localName)
 
 hasAttribute (string $qualifiedName)
 
 hasAttributeNS (?string $namespace, string $localName)
 
 removeAttribute (string $qualifiedName)
 
 removeAttributeNS (?string $namespace, string $localName)
 
 removeAttributeNode (DOMAttr $attr)
 
 setAttribute (string $qualifiedName, string $value)
 
 setAttributeNS (?string $namespace, string $qualifiedName, string $value)
 
 setAttributeNode (DOMAttr $attr)
 
 setAttributeNodeNS (DOMAttr $attr)
 
 setIdAttribute (string $qualifiedName, bool $isId)
 
 setIdAttributeNS (string $namespace, string $qualifiedName, bool $isId)
 
 setIdAttributeNode (DOMAttr $attr, bool $isId)
 
 toggleAttribute (string $qualifiedName, ?bool $force=null)
 
 remove ()
 
 before (... $nodes)
 
 after (... $nodes)
 
 replaceWith (... $nodes)
 
 append (... $nodes)
 
 prepend (... $nodes)
 
 replaceChildren (... $nodes)
 
 insertAdjacentElement (string $where, DOMElement $element)
 
 insertAdjacentText (string $where, string $data)
 
- Public Member Functions inherited from DOMNode
 appendChild (DOMNode $node)
 
 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)
 
 cloneNode (bool $deep=false)
 
 getLineNo ()
 
 getNodePath ()
 
 hasAttributes ()
 
 hasChildNodes ()
 
 insertBefore (DOMNode $node, ?DOMNode $child=null)
 
 isDefaultNamespace (string $namespace)
 
 isSameNode (DOMNode $otherNode)
 
 isEqualNode (?DOMNode $otherNode)
 
 isSupported (string $feature, string $version)
 
 lookupNamespaceURI (?string $prefix)
 
 lookupPrefix (string $namespace)
 
 normalize ()
 
 removeChild (DOMNode $child)
 
 replaceChild (DOMNode $node, DOMNode $child)
 
 contains (DOMNode|DOMNameSpaceNode|null $other)
 
 getRootNode (?array $options=null)
 
 compareDocumentPosition (DOMNode $other)
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

string $tagName
 
string $className
 
string $id
 
mixed $schemaTypeInfo
 
DOMElement $firstElementChild
 
DOMElement $lastElementChild
 
int $childElementCount
 
DOMElement $previousElementSibling
 
DOMElement $nextElementSibling
 
- Data Fields inherited from DOMNode
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
 
string $nodeName
 
string $nodeValue
 
int $nodeType
 
DOMNode $parentNode
 
DOMElement $parentElement
 
DOMNodeList $childNodes
 
DOMNode $firstChild
 
DOMNode $lastChild
 
DOMNode $previousSibling
 
DOMNode $nextSibling
 
DOMNamedNodeMap $attributes
 
bool $isConnected
 
DOMDocument $ownerDocument
 
string $namespaceURI
 
string $prefix
 
string $localName
 
string $baseURI
 
string $textContent
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

DOMElement::__construct ( string $qualifiedName,
?string $value = null,
string $namespace = "" )

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

Member Function Documentation

◆ after()

DOMElement::after ( ...)
Parameters
DOMNode | string$nodes

Implements DOMChildNode.

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

◆ append()

DOMElement::append ( ...)
Parameters
DOMNode | string$nodes

Implements DOMParentNode.

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

◆ before()

DOMElement::before ( ...)
Parameters
DOMNode | string$nodes

Implements DOMChildNode.

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

◆ getAttribute()

DOMElement::getAttribute ( string $qualifiedName)

@tentative-return-type

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

◆ getAttributeNames()

DOMElement::getAttributeNames ( )

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

◆ getAttributeNode()

DOMElement::getAttributeNode ( string $qualifiedName)
Returns
DOMAttr|DOMNameSpaceNode|false

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

◆ getAttributeNodeNS()

DOMElement::getAttributeNodeNS ( ?string $namespace,
string $localName )
Returns
DOMAttr|DOMNameSpaceNode|null

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

◆ getAttributeNS()

DOMElement::getAttributeNS ( ?string $namespace,
string $localName )

@tentative-return-type

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

◆ getElementsByTagName()

DOMElement::getElementsByTagName ( string $qualifiedName)

@tentative-return-type

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

◆ getElementsByTagNameNS()

DOMElement::getElementsByTagNameNS ( ?string $namespace,
string $localName )

@tentative-return-type

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

◆ hasAttribute()

DOMElement::hasAttribute ( string $qualifiedName)

@tentative-return-type

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

◆ hasAttributeNS()

DOMElement::hasAttributeNS ( ?string $namespace,
string $localName )

@tentative-return-type

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

◆ insertAdjacentElement()

DOMElement::insertAdjacentElement ( string $where,
DOMElement $element )

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

◆ insertAdjacentText()

DOMElement::insertAdjacentText ( string $where,
string $data )

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

◆ prepend()

DOMElement::prepend ( ...)
Parameters
DOMNode | string$nodes

Implements DOMParentNode.

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

◆ remove()

DOMElement::remove ( )

Implements DOMChildNode.

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

◆ removeAttribute()

DOMElement::removeAttribute ( string $qualifiedName)

@tentative-return-type

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

◆ removeAttributeNode()

DOMElement::removeAttributeNode ( DOMAttr $attr)
Returns
DOMAttr|false

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

◆ removeAttributeNS()

DOMElement::removeAttributeNS ( ?string $namespace,
string $localName )

@tentative-return-type

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

◆ replaceChildren()

DOMElement::replaceChildren ( ...)
Parameters
DOMNode | string$nodes

Implements DOMParentNode.

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

◆ replaceWith()

DOMElement::replaceWith ( ...)
Parameters
DOMNode | string$nodes

Implements DOMChildNode.

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

◆ setAttribute()

DOMElement::setAttribute ( string $qualifiedName,
string $value )
Returns
DOMAttr|bool

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

◆ setAttributeNode()

DOMElement::setAttributeNode ( DOMAttr $attr)
Returns
DOMAttr|null|false

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

◆ setAttributeNodeNS()

DOMElement::setAttributeNodeNS ( DOMAttr $attr)
Returns
DOMAttr|null|false

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

◆ setAttributeNS()

DOMElement::setAttributeNS ( ?string $namespace,
string $qualifiedName,
string $value )

@tentative-return-type

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

◆ setIdAttribute()

DOMElement::setIdAttribute ( string $qualifiedName,
bool $isId )

@tentative-return-type

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

◆ setIdAttributeNode()

DOMElement::setIdAttributeNode ( DOMAttr $attr,
bool $isId )

@tentative-return-type

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

◆ setIdAttributeNS()

DOMElement::setIdAttributeNS ( string $namespace,
string $qualifiedName,
bool $isId )

@tentative-return-type

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

◆ toggleAttribute()

DOMElement::toggleAttribute ( string $qualifiedName,
?bool $force = null )

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

Field Documentation

◆ $childElementCount

int DOMElement::$childElementCount

@readonly @virtual

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

◆ $className

string DOMElement::$className

@virtual

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

◆ $firstElementChild

DOMElement DOMElement::$firstElementChild

@readonly @virtual

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

◆ $id

string DOMElement::$id

@virtual

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

◆ $lastElementChild

DOMElement DOMElement::$lastElementChild

@readonly @virtual

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

◆ $nextElementSibling

DOMElement DOMElement::$nextElementSibling

@readonly @virtual

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

◆ $previousElementSibling

DOMElement DOMElement::$previousElementSibling

@readonly @virtual

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

◆ $schemaTypeInfo

mixed DOMElement::$schemaTypeInfo

@readonly @virtual

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

◆ $tagName

string DOMElement::$tagName

@readonly @virtual

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


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