Table extends AbstractElement
Table element RTF writer
Tags
Table of Contents
- $element : AbstractElement
- Element
- $escaper : Escaper|AbstractEscaper
- $fontStyle : Font
- Font style
- $paragraphStyle : Paragraph
- Paragraph style
- $parentWriter : AbstractWriter
- Parent writer
- $withoutP : bool
- Without paragraph
- __construct() : mixed
- Create new instance
- setWithoutP() : mixed
- Set without paragraph.
- write() : string
- Write element
- getStyles() : mixed
- Get font and paragraph styles.
- writeClosing() : string
- Write closing
- writeFontStyle() : string
- Write font style
- writeOpening() : string
- Write opening
- writeText() : string
- Write text
- getVMerge() : string
- Get vertical merge style
- writeCell() : string
- Write cell
- writeRow() : string
- Write row
- writeRowDef() : string
- Write column
Properties
$element
Element
protected
AbstractElement
$element
$escaper
protected
Escaper|AbstractEscaper
$escaper
$fontStyle
Font style
protected
Font
$fontStyle
$paragraphStyle
Paragraph style
protected
Paragraph
$paragraphStyle
$parentWriter
Parent writer
protected
AbstractWriter
$parentWriter
$withoutP
Without paragraph
protected
bool
$withoutP
= false
Methods
__construct()
Create new instance
public
__construct(AbstractWriter $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : AbstractWriter
- $element : AbstractElement
- $withoutP : bool = false
Return values
mixed —setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : mixed
Parameters
- $value : bool
Return values
mixed —write()
Write element
public
write() : string
Return values
string —getStyles()
Get font and paragraph styles.
protected
getStyles() : mixed
Return values
mixed —writeClosing()
Write closing
protected
writeClosing() : string
Return values
string —writeFontStyle()
Write font style
protected
writeFontStyle() : string
Return values
string —writeOpening()
Write opening
protected
writeOpening() : string
Return values
string —writeText()
Write text
protected
writeText(string $text) : string
Parameters
- $text : string
Return values
string —getVMerge()
Get vertical merge style
private
getVMerge(string $value) : string
Parameters
- $value : string
Tags
Return values
string —writeCell()
Write cell
private
writeCell(Cell $cell) : string
Parameters
- $cell : Cell
Return values
string —writeRow()
Write row
private
writeRow(Row $row) : string
Parameters
- $row : Row
Return values
string —writeRowDef()
Write column
private
writeRowDef(Row $row) : string
Parameters
- $row : Row