TableHelper deprecated
class TableHelper extends Helper
deprecated
Provides helpers to display table output.
Constants
LAYOUT_DEFAULT |
|
LAYOUT_BORDERLESS |
|
LAYOUT_COMPACT |
|
Methods
Returns the length of a string, using mb_strwidth if it is available.
No description
Sets table layout type.
No description
No description
No description
No description
No description
Sets padding character, used for cell padding.
Sets horizontal border character.
Sets vertical border character.
Sets crossing character.
Sets header cell format.
Sets row cell format.
Sets row cell content format.
Sets table border format.
Sets cell padding type.
Returns the canonical name of this helper.
Details
in Helper at line line 30
setHelperSet(HelperSet $helperSet = null)
Sets the helper set associated with this helper.
in Helper at line line 52
static int
strlen(string $string)
Returns the length of a string, using mb_strwidth if it is available.
in Helper at line line 61
static
formatTime($secs)
in Helper at line line 88
static
formatMemory($memory)
in Helper at line line 105
static
strlenWithoutDecoration(OutputFormatterInterface $formatter, $string)
at line line 38
__construct($triggerDeprecationError = true)
at line line 56
TableHelper
setLayout(int $layout)
Sets table layout type.
at line line 78
setHeaders(array $headers)
at line line 85
setRows(array $rows)
at line line 92
addRows(array $rows)
at line line 99
addRow(array $row)
at line line 106
setRow($column, array $row)
at line line 120
TableHelper
setPaddingChar(string $paddingChar)
Sets padding character, used for cell padding.
at line line 134
TableHelper
setHorizontalBorderChar(string $horizontalBorderChar)
Sets horizontal border character.
at line line 148
TableHelper
setVerticalBorderChar(string $verticalBorderChar)
Sets vertical border character.
at line line 162
TableHelper
setCrossingChar(string $crossingChar)
Sets crossing character.
at line line 176
TableHelper
setCellHeaderFormat(string $cellHeaderFormat)
Sets header cell format.
at line line 190
TableHelper
setCellRowFormat(string $cellRowFormat)
Sets row cell format.
at line line 204
TableHelper
setCellRowContentFormat(string $cellRowContentFormat)
Sets row cell content format.
at line line 218
TableHelper
setBorderFormat(string $borderFormat)
Sets table border format.
at line line 232
TableHelper
setPadType(int $padType)
Sets cell padding type.
at line line 253
render(OutputInterface $output)
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 | +---------------+-----------------------+------------------+
at line line 265
string
getName()
Returns the canonical name of this helper.