Document extends AbstractPart
RTF document part writer.
Tags
Table of Contents
- $escaper : EscaperInterface
- $parentWriter : AbstractWriter
- __construct() : mixed
- getParentWriter() : AbstractWriter
- setParentWriter() : void
- write() : string
- Write part.
- getDateValue() : string
- Get date value.
- writeFormatting() : string
- Write document formatting properties.
- writeInfo() : string
- Write document information.
- writeSections() : string
- Write sections.
- writeTitlepg() : string
- Write titlepg directive if any "f" headers or footers.
Properties
$escaper
protected
EscaperInterface
$escaper
$parentWriter
private
AbstractWriter
$parentWriter
Methods
__construct()
public
__construct() : mixed
Return values
mixed —getParentWriter()
public
getParentWriter() : AbstractWriter
Return values
AbstractWriter —setParentWriter()
public
setParentWriter([AbstractWriter $writer = null ]) : void
Parameters
- $writer : AbstractWriter = null
Return values
void —write()
Write part.
public
write() : string
Return values
string —getDateValue()
Get date value.
private
getDateValue(int $value) : string
The format of date value is \yr?\mo?\dy?\hr?\min?\sec?
Parameters
- $value : int
Return values
string —writeFormatting()
Write document formatting properties.
private
writeFormatting() : string
Return values
string —writeInfo()
Write document information.
private
writeInfo() : string
Return values
string —writeSections()
Write sections.
private
writeSections() : string
Return values
string —writeTitlepg()
Write titlepg directive if any "f" headers or footers.
private
static writeTitlepg(Section $section) : string
Parameters
- $section : Section