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

Public Member Functions

 __construct ()
 
 appendXML (string $data)
 
 append (... $nodes)
 
 prepend (... $nodes)
 
 replaceChildren (... $nodes)
 
- 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

DOMElement $firstElementChild
 
DOMElement $lastElementChild
 
int $childElementCount
 
- 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 562 of file php_dom.stub.php.

Constructor & Destructor Documentation

◆ __construct()

DOMDocumentFragment::__construct ( )

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

Member Function Documentation

◆ append()

DOMDocumentFragment::append ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMElement\append

Implements DOMParentNode.

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

◆ appendXML()

DOMDocumentFragment::appendXML ( string $data)

@tentative-return-type

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

◆ prepend()

DOMDocumentFragment::prepend ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMElement\prepend

Implements DOMParentNode.

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

◆ replaceChildren()

DOMDocumentFragment::replaceChildren ( ...)
Parameters
DOMNode | string$nodes@implementation-alias DOMDocument\replaceChildren

Implements DOMParentNode.

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

Field Documentation

◆ $childElementCount

int DOMDocumentFragment::$childElementCount

@readonly @virtual

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

◆ $firstElementChild

DOMElement DOMDocumentFragment::$firstElementChild

@readonly @virtual

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

◆ $lastElementChild

DOMElement DOMDocumentFragment::$lastElementChild

@readonly @virtual

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


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