Table::setRows()

setRows(array $rows) Parameters array $rows

Table::setRow()

setRow($column, array $row) Parameters $column array $row

Table::setColumnWidth()

Table setColumnWidth(int $columnIndex, int $width) Sets the minimum width of a column. Parameters int $columnIndex Column index int $width Minimum column width in characters Return Value Table

Table::setColumnStyle()

Table setColumnStyle(int $columnIndex, TableStyle|string $name) Sets table column style. Parameters int $columnIndex Column index TableStyle|string $name The style name or a TableStyle instance Return Value Table

Table::setColumnWidths()

Table setColumnWidths(array $widths) Sets the minimum width of all columns. Parameters array $widths Return Value Table

Table::addRows()

addRows(array $rows) Parameters array $rows

Table::getStyle()

TableStyle getStyle() Gets the current table style. Return Value TableStyle

Table::getStyleDefinition()

static TableStyle getStyleDefinition(string $name) Gets a style definition by name. Parameters string $name The style name Return Value TableStyle A TableStyle instance

Table::getColumnStyle()

TableStyle getColumnStyle(int $columnIndex) Gets the current style for a column. If style was not set, it returns the global table style. Parameters int $columnIndex Column index Return Value TableStyle

Table::render()

render() Renders table to output. Example: +---------------+-----------------------+------------------+ | ISBN | Title | Author | +---------------+-----------------------+------------------+ | 99921-58-10-7 | Divine Comedy | Dante Alighieri | | 9971-5-0210-0 | A Tale of Two Cities | Charles Dickens | | 960-425-059-0 | The Lord of the Rings | J. R. R. Tolkien | +---------------+-----------------------+------------------+