Documentation

Table extends AbstractElement
in package

Table element RTF writer.

Tags
since
0.11.0

Table of Contents

Properties

$element  : Table
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 element.
getStyles()  : void
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.
writeCellBorder()  : string
writeCellStyle()  : string
writeRow()  : string
Write row.
writeRowDef()  : string
Write column.

Properties

Methods

write()

Write 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

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
todo

Move to style

Return values
string

writeCell()

Write cell.

private writeCell(Cell $cell) : string
Parameters
$cell : Cell
Return values
string

writeCellBorder()

private writeCellBorder(string $prefix, string|null $borderStyle, int $borderSize, string|null $borderColor) : string
Parameters
$prefix : string
$borderStyle : string|null
$borderSize : int
$borderColor : string|null
Return values
string

writeCellStyle()

private writeCellStyle(Cell $cell, Table|null $table) : string
Parameters
$cell : Cell
$table : Table|null
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
Return values
string

        
On this page

Search results