Overview

Namespaces

  • Webmozart
    • Console
      • Adapter
      • Api
        • Application
        • Args
          • Format
        • Command
        • Config
        • Event
        • Formatter
        • IO
        • Resolver
      • Args
      • Config
      • Formatter
      • Handler
        • Help
      • IO
        • InputStream
        • OutputStream
      • Process
      • Resolver
      • UI
        • Alignment
        • Component
        • Help
        • Layout
        • Style
      • Util

Classes

  • Alignment
  • BorderStyle
  • GridStyle
  • TableStyle
  • Overview
  • Namespace
  • Class

Class GridStyle

Defines the style of a Grid.

Namespace: Webmozart\Console\UI\Style
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Style/GridStyle.php
Methods summary
public static Webmozart\Console\UI\Style\GridStyle
# borderless( )

A borderless style.

A borderless style.

Returns

Webmozart\Console\UI\Style\GridStyle
The style.
public static Webmozart\Console\UI\Style\GridStyle
# asciiBorder( )

A style that uses ASCII characters for drawing borders.

A style that uses ASCII characters for drawing borders.

Returns

Webmozart\Console\UI\Style\GridStyle
The style.
public static Webmozart\Console\UI\Style\GridStyle
# solidBorder( )

A style that uses Unicode characters for drawing solid borders.

A style that uses Unicode characters for drawing solid borders.

Returns

Webmozart\Console\UI\Style\GridStyle
The style.
public string
# getPaddingChar( )

Returns the character used to pad cells to the desired width.

Returns the character used to pad cells to the desired width.

Returns

string
The padding character.
public static
# setPaddingChar( string $char )

Sets the character used to pad cells to the desired width.

Sets the character used to pad cells to the desired width.

Parameters

$char
The padding character.

Returns

static
The current instance.
public string
# getCellFormat( )

Returns the format string for rendering cells.

Returns the format string for rendering cells.

Returns

string

The format string. The string contains the substring "%s" where the cell content is inserted.

public static
# setCellFormat( string $format )

Sets the format string for rendering cells.

Sets the format string for rendering cells.

Parameters

$format

The format string. The string should contain the substring "%s" where the cell content is inserted.

Returns

static
The current instance.
public integer
# getCellAlignment( )

Returns the cell alignment.

Returns the cell alignment.

Returns

integer
One of the Webmozart\Console\UI\Style\Alignment constants.
public static
# setCellAlignment( integer $alignment )

Sets the cell alignment.

Sets the cell alignment.

Parameters

$alignment
One of the Webmozart\Console\UI\Style\Alignment constants.

Returns

static
The current instance.
public Webmozart\Console\UI\Style\BorderStyle
# getBorderStyle( )

Returns the border style.

Returns the border style.

Returns

Webmozart\Console\UI\Style\BorderStyle
The border style.
public static
# setBorderStyle( Webmozart\Console\UI\Style\BorderStyle $borderStyle )

Sets the border style.

Sets the border style.

Parameters

$borderStyle
The border style.

Returns

static
The current instance.
public Webmozart\Console\Api\Formatter\Style
# getCellStyle( )

Returns the style of the grid cells.

Returns the style of the grid cells.

Returns

Webmozart\Console\Api\Formatter\Style
The cell style.
public static
# setCellStyle( Webmozart\Console\Api\Formatter\Style $style )

Sets the style of the grid cells.

Sets the style of the grid cells.

Parameters

$style
The cell style.

Returns

static
The current instance.
Webmozart Console API API documentation generated by ApiGen