Documentation

DOMWriterFileCache
in package
implements DOMWriterInterface, FileWriterInterface uses FileCacheTrait, DOMWriterElementFromDocumentTrait

FinalYes

Table of Contents

Interfaces

DOMWriterInterface
Writer that exports object state as DOM elements or documents.
FileWriterInterface
Writer that materializes object state as a file.

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
Return values
DOMDocument

toElement()

public toElement(DOMDocument $targetDoc) : DOMElement
Parameters
$targetDoc : DOMDocument
Tags
throws
RuntimeException
Return values
DOMElement

toFile()

Converts the object's data to a file on disk.

public toFile() : SplFileInfo
Return values
SplFileInfo
On this page

Search results