DOMWriterFromElementDelegate
in package
implements
DOMWriterInterface
uses
DOMWriterDocumentFromElementTrait
Table of Contents
Interfaces
Methods
- __construct() : mixed
- toDocument() : DOMDocument
- toElement() : DOMElement
- Converts the object's data to an element for an existing document.
Methods
__construct()
public
__construct(callable $delegate) : mixed
Parameters
- $delegate : callable
toDocument()
public
toDocument() : DOMDocument
Return values
DOMDocumenttoElement()
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