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

  • BlockLayout
  • Overview
  • Namespace
  • Class

Class BlockLayout

Renders renderable objects in indented blocks.

Webmozart\Console\UI\Layout\BlockLayout implements Webmozart\Console\UI\Component
Namespace: Webmozart\Console\UI\Layout
Author: Bernhard Schussek bschussek@gmail.com
Since: 1.0
Located at UI/Layout/BlockLayout.php
Methods summary
public
# __construct( )

Creates a new layout.

Creates a new layout.

public static
# add( Webmozart\Console\UI\Component $element )

Adds a renderable element to the layout.

Adds a renderable element to the layout.

Parameters

$element
The element to add.

Returns

static
The current instance.
public static
# beginBlock( )

Starts a new indented block.

Starts a new indented block.

Returns

static
The current instance.
public static
# endBlock( )

Ends the current indented block.

Ends the current indented block.

Returns

static
The current instance.
public
# render( Webmozart\Console\Api\IO\IO $io, integer $indentation = 0 )

Renders all elements in the layout.

Renders all elements in the layout.

Parameters

$io
The I/O.
$indentation
The number of spaces to indent.

Implementation of

Webmozart\Console\UI\Component::render()
Webmozart Console API API documentation generated by ApiGen