Documentation

Field extends Text
in package

Field element writer.

Note: for now, only date, page, numpages and filename fields are implemented for RTF.

Table of Contents

Properties

$element  : AbstractElement
Element.
$escaper  : EscaperInterface
$fontStyle  : Font
Font style.
$paragraphStyle  : Paragraph
Paragraph style.
$parentWriter  : RTF
Parent writer.
$withoutP  : bool
Without paragraph.

Methods

__construct()  : mixed
write()  : string
Write field element.
getStyles()  : void
Get font and paragraph styles.
writeClosing()  : string
Write closing.
writeDate()  : mixed
writeFilename()  : string
writeFontStyle()  : string
Write font style.
writeNumpages()  : mixed
writeOpening()  : string
Write opening.
writePage()  : mixed
writeText()  : string
Write text.

Properties

Methods

write()

Write field element.

public write() : string
Return values
string

getStyles()

Get font and paragraph styles.

protected getStyles() : void

writeClosing()

Write closing.

protected writeClosing() : string
Return values
string

writeDate()

protected writeDate(Field $element) : mixed
Parameters
$element : Field

writeFilename()

protected writeFilename(Field $element) : string
Parameters
$element : Field
Return values
string

writeFontStyle()

Write font style.

protected writeFontStyle() : string
Return values
string

writeNumpages()

protected writeNumpages() : mixed

writeOpening()

Write opening.

protected writeOpening() : string
Return values
string

writePage()

protected writePage() : mixed

writeText()

Write text.

protected writeText(string $text) : string
Parameters
$text : string
Return values
string

        
On this page

Search results