PHP Class Yosymfony\Spress\IO\ConsoleIO

Author: Victor Puertas ([email protected])
Inheritance: implements Yosymfony\Spress\Core\IO\IOInterface
Mostra file Open project: spress/spress Class Usage Examples

Protected Properties

Property Type Description
$input
$io

Public Methods

Method Description
__construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) Constructor.
ask ( $question, $default = null )
askAndHideAnswer ( $question, $fallback = true )
askAndValidate ( $question, callable $validator, $attempts = false, $default = null )
askConfirmation ( $question, $default = true )
askHiddenResponseAndValidate ( $question, callable $validator, $attempts = false, $fallback = true )
error ( string | array $message ) Formats an error result bar.
isDebug ( )
isDecorated ( )
isInteractive ( )
isVerbose ( )
isVeryVerbose ( )
labelValue ( string $label, mixed $value ) Formats a pair label-value.
listing ( array $elements ) Formats a list.
newLine ( integer $count = 1 ) Add newline(s).
success ( string | array $message ) Formats a success result bar.
warning ( string | array $message ) Formats an warning result bar.
write ( $messages, $newline = true )

Method Details

__construct() public method

Constructor.
public __construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface Input operations
$output Symfony\Component\Console\Output\OutputInterface Ouputs operations

ask() public method

public ask ( $question, $default = null )

askAndHideAnswer() public method

public askAndHideAnswer ( $question, $fallback = true )

askAndValidate() public method

public askAndValidate ( $question, callable $validator, $attempts = false, $default = null )
$validator callable

askConfirmation() public method

public askConfirmation ( $question, $default = true )

askHiddenResponseAndValidate() public method

public askHiddenResponseAndValidate ( $question, callable $validator, $attempts = false, $fallback = true )
$validator callable

error() public method

Formats an error result bar.
public error ( string | array $message )
$message string | array

isDebug() public method

public isDebug ( )

isDecorated() public method

public isDecorated ( )

isInteractive() public method

public isInteractive ( )

isVerbose() public method

public isVerbose ( )

isVeryVerbose() public method

public isVeryVerbose ( )

labelValue() public method

Formats a pair label-value.
public labelValue ( string $label, mixed $value )
$label string
$value mixed

listing() public method

Formats a list.
public listing ( array $elements )
$elements array

newLine() public method

Add newline(s).
public newLine ( integer $count = 1 )
$count integer The number of newlines

success() public method

Formats a success result bar.
public success ( string | array $message )
$message string | array

warning() public method

Formats an warning result bar.
public warning ( string | array $message )
$message string | array

write() public method

public write ( $messages, $newline = true )

Property Details

$input protected_oe property

protected $input

$io protected_oe property

protected $io