You are here

private static function Table::initStyles in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/console/Helper/Table.php \Symfony\Component\Console\Helper\Table::initStyles()
3 calls to Table::initStyles()
Table::getStyleDefinition in vendor/symfony/console/Helper/Table.php
Gets a style definition by name.
Table::setStyleDefinition in vendor/symfony/console/Helper/Table.php
Sets a style definition.
Table::__construct in vendor/symfony/console/Helper/Table.php

File

vendor/symfony/console/Helper/Table.php, line 574

Class

Table
Provides helpers to display a table.

Namespace

Symfony\Component\Console\Helper

Code

private static function initStyles() {
  $borderless = new TableStyle();
  $borderless
    ->setHorizontalBorderChar('=')
    ->setVerticalBorderChar(' ')
    ->setCrossingChar(' ');
  $compact = new TableStyle();
  $compact
    ->setHorizontalBorderChar('')
    ->setVerticalBorderChar(' ')
    ->setCrossingChar('')
    ->setCellRowContentFormat('%s');
  $styleGuide = new TableStyle();
  $styleGuide
    ->setHorizontalBorderChar('-')
    ->setVerticalBorderChar(' ')
    ->setCrossingChar(' ')
    ->setCellHeaderFormat('%s');
  return array(
    'default' => new TableStyle(),
    'borderless' => $borderless,
    'compact' => $compact,
    'symfony-style-guide' => $styleGuide,
  );
}