Create a visually pleasing ASCII art table from 2 dimensional array data.
TableShellHelper $_defaultConfig protected array_addStyle( string $text , string $style )
Add style tags
$text $style _calculateWidths( array $rows )
Calculate the column widths
$rows _render( array $row , array $widths , array $options array() )
Output a row.
$row $widths $options optional array() _rowSeparator( array $widths )
Output a row separator.
$widths output( array $rows )
Output a table.
$rows __construct( ConsoleOutput $consoleOutput , array $config array() )
Constructor.
ConsoleOutput $consoleOutput $config optional array() config( null $config null )
Initialize config & store config values
$config optional null protected array
Default config for this helper.
array(
'headers' => true,
'rowSeparator' => false,
'headerStyle' => 'info',
)
© 2005–2016 The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
http://api.cakephp.org/2.8/class-TableShellHelper.html