Documentation

DOMWriterFromDOMWriterDelegate
in package
implements DOMWriterInterface

Table of Contents

Interfaces

DOMWriterInterface

Methods

__construct()  : mixed
toDocument()  : DOMDocument
Converts the object's data to a document.
toElement()  : DOMElement
Converts the object's data to an element for an existing document.

Methods

toDocument()

Converts the object's data to a document.

public toDocument() : DOMDocument

Subsequent calls are expected to return the same document each time.

Return values
DOMDocument

toElement()

Converts the object's data to an element for an existing document.

public toElement(DOMDocument $targetDoc) : DOMElement

Subsequent calls are expected to return a new element each time.

Parameters
$targetDoc : DOMDocument
Return values
DOMElement

        
On this page

Search results