Table
extends AbstractElement
in package
Table element HTML writer.
Tags
Table of Contents
Properties
- $element : AbstractElement
- Element.
- $parentWriter : HTML
- Parent writer.
- $withoutP : bool
- Without paragraph.
Methods
- __construct() : mixed
- Create new instance.
- setWithoutP() : void
- Set without paragraph.
- write() : string
- Write table.
- calculateCellRowSpan() : int
- Calculates cell rowspan.
- getTableStyle() : string
- Translates Table style in CSS equivalent.
Properties
$element
Element.
protected
AbstractElement
$element
$parentWriter
Parent writer.
protected
HTML
$parentWriter
$withoutP
Without paragraph.
protected
bool
$withoutP
= false
Methods
__construct()
Create new instance.
public
__construct(HTML $parentWriter, AbstractElement $element[, bool $withoutP = false ]) : mixed
Parameters
- $parentWriter : HTML
- $element : AbstractElement
- $withoutP : bool = false
setWithoutP()
Set without paragraph.
public
setWithoutP(bool $value) : void
Parameters
- $value : bool
write()
Write table.
public
write() : string
Return values
stringcalculateCellRowSpan()
Calculates cell rowspan.
private
calculateCellRowSpan(array<string|int, Row> $rows, int $rowIndex, int $colIndex) : int
Parameters
- $rows : array<string|int, Row>
- $rowIndex : int
- $colIndex : int
Return values
intgetTableStyle()
Translates Table style in CSS equivalent.
private
getTableStyle([null|Cell|Table|string $tableStyle = null ]) : string