[ Index ]

PHP Cross Reference of phpBB-3.1.12-deutsch

title

Body

[close]

/vendor/symfony/console/Symfony/Component/Console/Helper/ -> TableHelper.php (summary)

(no description)

File Size: 489 lines (12 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

TableHelper:: (26 methods):
  __construct()
  setLayout()
  setHeaders()
  setRows()
  addRows()
  addRow()
  setRow()
  setPaddingChar()
  setHorizontalBorderChar()
  setVerticalBorderChar()
  setCrossingChar()
  setCellHeaderFormat()
  setCellRowFormat()
  setBorderFormat()
  setPadType()
  render()
  renderRowSeparator()
  renderColumnSeparator()
  renderRow()
  renderCell()
  getNumberOfColumns()
  getColumnWidth()
  getCellWidth()
  cleanup()
  computeLengthWithoutDecoration()
  getName()


Class: TableHelper  - X-Ref

Provides helpers to display table output.

__construct()   X-Ref


setLayout($layout)   X-Ref
Sets table layout type.

param: int $layout self::LAYOUT_*
return: TableHelper

setHeaders(array $headers)   X-Ref
No description

setRows(array $rows)   X-Ref
No description

addRows(array $rows)   X-Ref
No description

addRow(array $row)   X-Ref
No description

setRow($column, array $row)   X-Ref
No description

setPaddingChar($paddingChar)   X-Ref
Sets padding character, used for cell padding.

param: string $paddingChar
return: TableHelper

setHorizontalBorderChar($horizontalBorderChar)   X-Ref
Sets horizontal border character.

param: string $horizontalBorderChar
return: TableHelper

setVerticalBorderChar($verticalBorderChar)   X-Ref
Sets vertical border character.

param: string $verticalBorderChar
return: TableHelper

setCrossingChar($crossingChar)   X-Ref
Sets crossing character.

param: string $crossingChar
return: TableHelper

setCellHeaderFormat($cellHeaderFormat)   X-Ref
Sets header cell format.

param: string $cellHeaderFormat
return: TableHelper

setCellRowFormat($cellRowFormat)   X-Ref
Sets row cell format.

param: string $cellRowFormat
return: TableHelper

setBorderFormat($borderFormat)   X-Ref
Sets table border format.

param: string $borderFormat
return: TableHelper

setPadType($padType)   X-Ref
Sets cell padding type.

param: int $padType STR_PAD_*
return: TableHelper

render(OutputInterface $output)   X-Ref
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 |
+---------------+-----------------------+------------------+

param: OutputInterface $output

renderRowSeparator()   X-Ref
Renders horizontal header separator.

Example: +-----+-----------+-------+

renderColumnSeparator()   X-Ref
Renders vertical column separator.


renderRow(array $row, $cellFormat)   X-Ref
Renders table row.

Example: | 9971-5-0210-0 | A Tale of Two Cities  | Charles Dickens  |

param: array  $row
param: string $cellFormat

renderCell(array $row, $column, $cellFormat)   X-Ref
Renders table cell with padding.

param: array  $row
param: int    $column
param: string $cellFormat

getNumberOfColumns()   X-Ref
Gets number of columns for this table.

return: int

getColumnWidth($column)   X-Ref
Gets column width.

param: int $column
return: int

getCellWidth(array $row, $column)   X-Ref
Gets cell width.

param: array $row
param: int   $column
return: int

cleanup()   X-Ref
Called after rendering to cleanup cache data.


computeLengthWithoutDecoration($string)   X-Ref
No description

getName()   X-Ref
{@inheritdoc}




Generated: Thu Jan 11 00:25:41 2018 Cross-referenced by PHPXref 0.7.1