php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
Dom\Document Class Reference
Inheritance diagram for Dom\Document:
Dom\Node Dom\ParentNode Dom\HTMLDocument Dom\XMLDocument

Public Member Functions

 getElementsByTagName (string $qualifiedName)
 
 getElementsByTagNameNS (?string $namespace, string $localName)
 
 createElement (string $localName)
 
 createElementNS (?string $namespace, string $qualifiedName)
 
 createDocumentFragment ()
 
 createTextNode (string $data)
 
 createCDATASection (string $data)
 
 createComment (string $data)
 
 createProcessingInstruction (string $target, string $data)
 
 importNode (?Node $node, bool $deep=false)
 
 adoptNode (Node $node)
 
 createAttribute (string $localName)
 
 createAttributeNS (?string $namespace, string $qualifiedName)
 
 getElementById (string $elementId)
 
 registerNodeClass (string $baseClass, ?string $extendedClass)
 
 schemaValidate (string $filename, int $flags=0)
 
 schemaValidateSource (string $source, int $flags=0)
 
 relaxNgValidate (string $filename)
 
 relaxNgValidateSource (string $source)
 
 append (Node|string ... $nodes)
 
 prepend (Node|string ... $nodes)
 
 replaceChildren (Node|string ... $nodes)
 
 importLegacyNode (\DOMNode $node, bool $deep=false)
 
 querySelector (string $selectors)
 
 querySelectorAll (string $selectors)
 
- Public Member Functions inherited from Dom\Node
 getRootNode (array $options=[])
 
 hasChildNodes ()
 
 normalize ()
 
 cloneNode (bool $deep=false)
 
 isEqualNode (?Node $otherNode)
 
 isSameNode (?Node $otherNode)
 
 compareDocumentPosition (Node $other)
 
 contains (?Node $other)
 
 lookupPrefix (?string $namespace)
 
 lookupNamespaceURI (?string $prefix)
 
 isDefaultNamespace (?string $namespace)
 
 insertBefore (Node $node, ?Node $child)
 
 appendChild (Node $node)
 
 replaceChild (Node $node, Node $child)
 
 removeChild (Node $child)
 
 getLineNo ()
 
 getNodePath ()
 
 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)
 
 __sleep ()
 
 __wakeup ()
 

Data Fields

Implementation $implementation
 
string $URL
 
string $documentURI
 
string $characterSet
 
string $charset
 
string $inputEncoding
 
DocumentType $doctype
 
Element $documentElement
 
Element $firstElementChild
 
Element $lastElementChild
 
int $childElementCount
 
HTMLElement $body
 
HTMLElement $head
 
string $title
 
- Data Fields inherited from Dom\Node
int $nodeType
 
string $nodeName
 
string $baseURI
 
bool $isConnected
 
Document $ownerDocument
 
Node $parentNode
 
Element $parentElement
 
NodeList $childNodes
 
Node $firstChild
 
Node $lastChild
 
Node $previousSibling
 
Node $nextSibling
 
string $nodeValue
 
string $textContent
 
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
 

Detailed Description

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

Member Function Documentation

◆ adoptNode()

Dom\Document::adoptNode ( Node $node)

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

◆ append()

Dom\Document::append ( Node|string ... $nodes)

@implementation-alias DOMElement\append

Implements Dom\ParentNode.

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

◆ createAttribute()

Dom\Document::createAttribute ( string $localName)

@implementation-alias DOMDocument\createAttribute

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

◆ createAttributeNS()

Dom\Document::createAttributeNS ( ?string $namespace,
string $qualifiedName )

@implementation-alias DOMDocument\createAttributeNS

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

◆ createCDATASection()

Dom\Document::createCDATASection ( string $data)

@implementation-alias DOMDocument\createCDATASection

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

◆ createComment()

Dom\Document::createComment ( string $data)

@implementation-alias DOMDocument\createComment

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

◆ createDocumentFragment()

Dom\Document::createDocumentFragment ( )

@implementation-alias DOMDocument\createDocumentFragment

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

◆ createElement()

Dom\Document::createElement ( string $localName)

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

◆ createElementNS()

Dom\Document::createElementNS ( ?string $namespace,
string $qualifiedName )

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

◆ createProcessingInstruction()

Dom\Document::createProcessingInstruction ( string $target,
string $data )

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

◆ createTextNode()

Dom\Document::createTextNode ( string $data)

@implementation-alias DOMDocument\createTextNode

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

◆ getElementById()

Dom\Document::getElementById ( string $elementId)

@implementation-alias DOMDocument\getElementById

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

◆ getElementsByTagName()

Dom\Document::getElementsByTagName ( string $qualifiedName)

@implementation-alias Dom\Element::getElementsByTagName

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

◆ getElementsByTagNameNS()

Dom\Document::getElementsByTagNameNS ( ?string $namespace,
string $localName )

@implementation-alias Dom\Element::getElementsByTagNameNS

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

◆ importLegacyNode()

Dom\Document::importLegacyNode ( \DOMNode $node,
bool $deep = false )

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

◆ importNode()

Dom\Document::importNode ( ?Node $node,
bool $deep = false )

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

◆ prepend()

Dom\Document::prepend ( Node|string ... $nodes)

@implementation-alias DOMElement\prepend

Implements Dom\ParentNode.

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

◆ querySelector()

Dom\Document::querySelector ( string $selectors)

@implementation-alias Dom\Element::querySelector

Implements Dom\ParentNode.

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

◆ querySelectorAll()

Dom\Document::querySelectorAll ( string $selectors)

@implementation-alias Dom\Element::querySelectorAll

Implements Dom\ParentNode.

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

◆ registerNodeClass()

Dom\Document::registerNodeClass ( string $baseClass,
?string $extendedClass )

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

◆ relaxNgValidate()

Dom\Document::relaxNgValidate ( string $filename)

@implementation-alias DOMDocument\relaxNGValidate

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

◆ relaxNgValidateSource()

Dom\Document::relaxNgValidateSource ( string $source)

@implementation-alias DOMDocument\relaxNGValidateSource

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

◆ replaceChildren()

Dom\Document::replaceChildren ( Node|string ... $nodes)

@implementation-alias DOMDocument\replaceChildren

Implements Dom\ParentNode.

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

◆ schemaValidate()

Dom\Document::schemaValidate ( string $filename,
int $flags = 0 )

@implementation-alias DOMDocument\schemaValidate

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

◆ schemaValidateSource()

Dom\Document::schemaValidateSource ( string $source,
int $flags = 0 )

@implementation-alias DOMDocument\schemaValidateSource

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

Field Documentation

◆ $body

HTMLElement Dom\Document::$body

@virtual

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

◆ $characterSet

string Dom\Document::$characterSet

@virtual

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

◆ $charset

string Dom\Document::$charset

@virtual

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

◆ $childElementCount

int Dom\Document::$childElementCount

@readonly @virtual

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

◆ $doctype

DocumentType Dom\Document::$doctype

@readonly @virtual

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

◆ $documentElement

Element Dom\Document::$documentElement

@readonly @virtual

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

◆ $documentURI

string Dom\Document::$documentURI

@virtual

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

◆ $firstElementChild

Element Dom\Document::$firstElementChild

@readonly @virtual

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

◆ $head

HTMLElement Dom\Document::$head

@readonly @virtual

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

◆ $implementation

Implementation Dom\Document::$implementation

@readonly

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

◆ $inputEncoding

string Dom\Document::$inputEncoding

@virtual

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

◆ $lastElementChild

Element Dom\Document::$lastElementChild

@readonly @virtual

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

◆ $title

string Dom\Document::$title

@virtual

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

◆ $URL

string Dom\Document::$URL

@virtual

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


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