Overview

Namespaces

  • Evenement
  • None
  • Peridot
    • Console
    • Core
    • Reporter
    • Runner
    • Scope
    • Test
  • Symfony
    • Component
      • Console
        • Command
        • Descriptor
        • Event
        • Exception
        • Formatter
        • Helper
        • Input
        • Logger
        • Output
        • Question
        • Style
        • Tester
        • Tests
          • Command
          • Descriptor
          • Fixtures
          • Formatter
          • Helper
          • Input
          • Logger
          • Output
          • Style
          • Tester

Classes

  • DebugFormatterHelper
  • DescriptorHelper
  • DialogHelper
  • FormatterHelper
  • Helper
  • HelperSet
  • InputAwareHelper
  • ProcessHelper
  • ProgressBar
  • ProgressHelper
  • ProgressIndicator
  • QuestionHelper
  • SymfonyQuestionHelper
  • Table
  • TableCell
  • TableHelper
  • TableSeparator
  • TableStyle

Interfaces

  • HelperInterface
  • Overview
  • Namespace
  • Class

Class Table

Provides helpers to display a table.

Namespace: Symfony\Component\Console\Helper
Author: Fabien Potencier fabien@symfony.com
Author: Саша Стаменковић umpirsky@gmail.com
Author: Abdellatif Ait boudad a.aitboudad@gmail.com
Author: Max Grigorian maxakawizard@gmail.com
Located at Helper/Table.php
Methods summary
public
# __construct( Symfony\Component\Console\Output\OutputInterface $output )
public static
# setStyleDefinition( string $name, Symfony\Component\Console\Helper\TableStyle $style )

Sets a style definition.

Sets a style definition.

Parameters

$name
The style name
$style
A TableStyle instance
public static Symfony\Component\Console\Helper\TableStyle
# getStyleDefinition( string $name )

Gets a style definition by name.

Gets a style definition by name.

Parameters

$name
The style name

Returns

Symfony\Component\Console\Helper\TableStyle
A TableStyle instance
public Symfony\Component\Console\Helper\Table
# setStyle( Symfony\Component\Console\Helper\TableStyle|string $name )

Sets table style.

Sets table style.

Parameters

$name
The style name or a TableStyle instance

Returns

Symfony\Component\Console\Helper\Table
public Symfony\Component\Console\Helper\TableStyle
# getStyle( )

Gets the current table style.

Gets the current table style.

Returns

Symfony\Component\Console\Helper\TableStyle
public Symfony\Component\Console\Helper\Table
# setColumnStyle( integer $columnIndex, Symfony\Component\Console\Helper\TableStyle|string $name )

Sets table column style.

Sets table column style.

Parameters

$columnIndex
Column index
$name
The style name or a TableStyle instance

Returns

Symfony\Component\Console\Helper\Table
public Symfony\Component\Console\Helper\TableStyle
# getColumnStyle( integer $columnIndex )

Gets the current style for a column.

Gets the current style for a column.

If style was not set, it returns the global table style.

Parameters

$columnIndex
Column index

Returns

Symfony\Component\Console\Helper\TableStyle
public
# setHeaders( array $headers )
public
# setRows( array $rows )
public
# addRows( array $rows )
public
# addRow( $row )
public
# setRow( $column, array $row )
public
# render( )

Renders table to 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 | +---------------+-----------------------+------------------+

Peridot API documentation generated by ApiGen