setRows(array $rows) Parameters array $rows
setRow($column, array $row) Parameters $column array $row
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(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(array $widths) Sets the minimum width of all columns. Parameters array $widths Return Value Table
addRows(array $rows) Parameters array $rows
TableStyle getStyle() Gets the current table style. Return Value TableStyle
static TableStyle getStyleDefinition(string $name) Gets a style definition by name. Parameters string $name The style name Return Value TableStyle A TableStyle instance
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
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 | +---------------+-----------------------+------------------+
Page 81 of 787