Documentation

DOMWriterFileCache
in package
implements DOMWriterInterface, FileWriterInterface uses DOMWriterElementFromDocumentTrait

Table of Contents

Interfaces

DOMWriterInterface
FileWriterInterface

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
DOMDocument

toFile()

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.

Return values
SplFileInfo

        
On this page

Search results