RenderedDocument
in package
Read onlyYes
FinalYes
Rendered quote, delivery note, reminder or other document (PDF and HTML, never XML).
Table of Contents
Methods
- __construct() : mixed
- contents() : string
- data() : DocumentData
- filename() : string
- hasPdf() : bool
- html() : string
- mimeType() : string
- pdf() : string
- save() : string
- Writes the output to a file, or into a directory (an existing one or a path ending in "/") with filename(); creates missing directories.
Methods
__construct()
public
__construct(DocumentData $data, string $html, string $filenamePattern[, string|null $pdf = null ]) : mixed
Parameters
- $data : DocumentData
- $html : string
- $filenamePattern : string
- $pdf : string|null = null
contents()
public
contents() : string
Return values
stringdata()
public
data() : DocumentData
Return values
DocumentDatafilename()
public
filename([string|null $extension = null ]) : string
Parameters
- $extension : string|null = null
Return values
stringhasPdf()
public
hasPdf() : bool
Return values
boolhtml()
public
html() : string
Return values
stringmimeType()
public
mimeType() : string
Return values
stringpdf()
public
pdf() : string
Return values
stringsave()
Writes the output to a file, or into a directory (an existing one or a path ending in "/") with filename(); creates missing directories.
public
save(string $path) : string
Parameters
- $path : string
Return values
string —the written path