Container
extends AbstractElement
in package
Container element RTF writer.
Tags
Table of Contents
Properties
- $element : AbstractElement
- Element.
- $escaper : EscaperInterface
- $fontStyle : Font
- Font style.
- $namespace : string
- Namespace; Can't use __NAMESPACE__ in inherited class (RTF).
- $paragraphStyle : Paragraph
- Paragraph style.
- $parentWriter : RTF
- Parent writer.
- $withoutP : bool
- Without paragraph.
Methods
- __construct() : mixed
- write() : string
- Write container.
- getStyles() : void
- Get font and paragraph styles.
- writeClosing() : string
- Write closing.
- writeFontStyle() : string
- Write font style.
- writeOpening() : string
- Write opening.
- writeText() : string
- Write text.
Properties
$element
Element.
protected
AbstractElement
$element
$escaper
protected
EscaperInterface
$escaper
$fontStyle
Font style.
protected
Font
$fontStyle
$namespace
Namespace; Can't use __NAMESPACE__ in inherited class (RTF).
protected
string
$namespace
= 'PhpOffice\PhpWord\Writer\RTF\Element'
$paragraphStyle
Paragraph style.
protected
Paragraph
$paragraphStyle
$parentWriter
Parent writer.
protected
RTF
$parentWriter
$withoutP
Without paragraph.
protected
bool
$withoutP
= false
Methods
__construct()
public
__construct(RTF $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : RTF
- $element : AbstractElement
- $withoutP : bool = false
write()
Write container.
public
write() : string
Return values
stringgetStyles()
Get font and paragraph styles.
protected
getStyles() : void
writeClosing()
Write closing.
protected
writeClosing() : string
Return values
stringwriteFontStyle()
Write font style.
protected
writeFontStyle() : string
Return values
stringwriteOpening()
Write opening.
protected
writeOpening() : string
Return values
stringwriteText()
Write text.
protected
writeText(string $text) : string
Parameters
- $text : string