DOMWriterFileCache
in package
implements
DOMWriterInterface, FileWriterInterface
uses
DOMWriterElementFromDocumentTrait
Table of Contents
Interfaces
Methods
- __construct() : mixed
- toDocument() : DOMDocument
- Converts the object's data to a document.
- toElement() : DOMElement
- toFile() : SplFileInfo
- Converts the object's data to a file on disk.
Methods
__construct()
public
__construct(DOMWriterInterface $sourceWriter, SplFileInfo $cacheFile[, callable|null $shouldRefreshCacheDelegate = null ]) : mixed
Parameters
- $sourceWriter : DOMWriterInterface
- $cacheFile : SplFileInfo
- $shouldRefreshCacheDelegate : callable|null = null
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
DOMDocumenttoElement()
public
toElement(DOMDocument $targetDoc) : DOMElement
Parameters
- $targetDoc : DOMDocument
Return values
DOMElementtoFile()
Converts the object's data to a file on disk.
public
toFile() : SplFileInfo
Subsequent calls are expected to return the same file object each time.