Methods
Create a basic table object
__construct(array | \Traversable $options)
Parameters
$options
array\Traversable
Configuration options
Exceptions
Magic method which returns the rendered table
__toString() : string
Get the output charset for column contents
getOutputCharset() : string
Render the table
render() : string
Exceptions
Returns
string
Set auto separation mode
setAutoSeparate(int $autoSeparate) : \Zend\Text\Table\Table
Parameters
$autoSeparate
int
Auto separation mode
Returns
Set column widths
setColumnWidths(array $columnWidths) : \Zend\Text\Table\Table
Parameters
$columnWidths
array
Widths of all columns
Exceptions
Returns
Set the plugin manager instance for decorators
setDecoratorManager(\Zend\Text\Table\DecoratorManager $decoratorManager) : \Zend\Text\Table\Table
Set default column align for rows created by appendRow(array $data)
setDefaultColumnAlign(int $columnNum, string $align) : \Zend\Text\Table\Table
Parameters
$columnNum
int
$align
string
Returns
Set options from array
setOptions(array $options) : \Zend\Text\Table\Table
Parameters
$options
array
Configuration for Table
Returns
Set the output charset for column contents
setOutputCharset(string $charset)
Parameters
$charset
string
Set the column padding
setPadding(int $padding) : \Zend\Text\Table\Table
Parameters
$padding
int
The padding for the columns
Returns
Properties
Auto separation mode
$autoSeparate : int
List of all column widths
$columnWidths : array
Default column aligns for rows created by appendRow(array $data)
$defaultColumnAligns : array
Charset which is used internally
$outputCharset : string
Padding for columns
$padding : int
Rows of the table
$rows : array
Option keys to skip when calling setOptions()
$skipOptions : array
Constants
AUTO_SEPARATE_ALL
AUTO_SEPARATE_ALL
Auto separator settings
AUTO_SEPARATE_NONE