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