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

  • BorderUtil
  • CellWrapper
  • EmptyLine
  • ExceptionTrace
  • Grid
  • LabeledParagraph
  • NameVersion
  • Paragraph
  • Table
  • Overview
  • Namespace
  • Class

Class BorderUtil

Contains utility methods to draw borders and bordered cells.

Namespace: Webmozart\Console\UI\Component
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Component/BorderUtil.php
Methods summary
public static
# drawTopBorder( Webmozart\Console\Api\IO\IO $io, Webmozart\Console\UI\Style\BorderStyle $style, array $columnLengths, integer $indentation = 0 )

Draws a top border.

Draws a top border.

Crossings are drawn between each pair of columns if more than one column length is passed.

Parameters

$io
The I/O.
$style
The border style.
$columnLengths
An array of column lengths.
$indentation
The number of spaces to indent.
public static
# drawMiddleBorder( Webmozart\Console\Api\IO\IO $io, Webmozart\Console\UI\Style\BorderStyle $style, array $columnLengths, integer $indentation = 0 )

Draws a middle border.

Draws a middle border.

Crossings are drawn between each pair of columns if more than one column length is passed.

Parameters

$io
The I/O.
$style
The border style.
$columnLengths
An array of column lengths.
$indentation
The number of spaces to indent.
public static
# drawBottomBorder( Webmozart\Console\Api\IO\IO $io, Webmozart\Console\UI\Style\BorderStyle $style, array $columnLengths, integer $indentation = 0 )

Draws a bottom border.

Draws a bottom border.

Crossings are drawn between each pair of columns if more than one column length is passed.

Parameters

$io
The I/O.
$style
The border style.
$columnLengths
An array of column lengths.
$indentation
The number of spaces to indent.
public static
# drawRow( Webmozart\Console\Api\IO\IO $io, Webmozart\Console\UI\Style\BorderStyle $style, array $row, array $columnLengths, array $alignments, string $cellFormat, Webmozart\Console\Api\Formatter\Style $cellStyle, string $paddingChar, integer $indentation = 0 )

Draws a bordered row of cells.

Draws a bordered row of cells.

Parameters

$io
The I/O.
$style
The border style.
$row
The row cells.
$columnLengths
The lengths of the cells.
$alignments
The alignments of the cells.
$cellFormat
The cell format.
$cellStyle
The cell style.
$paddingChar
The character used to pad cells.
$indentation
The number of spaces to indent.
Webmozart Console API API documentation generated by ApiGen