PHP Класс Symfony\Component\Console\Style\SymfonyStyle

Автор: Kevin Bond ([email protected])
Наследование: extends Symfony\Component\Console\Style\OutputStyle
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
ask ( $question, $default = null, $validator = null )
askHidden ( $question, $validator = null )
askQuestion ( Symfony\Component\Console\Question\Question $question ) : string
block ( string | array $messages, string | null $type = null, string | null $style = null, string $prefix = ' ', boolean $padding = false ) Formats a message as a block of text.
caution ( $message )
choice ( $question, array $choices, $default = null )
comment ( string | array $message ) Formats a command comment.
confirm ( $question, $default = true )
createProgressBar ( $max )
error ( $message )
listing ( array $elements )
newLine ( $count = 1 )
note ( $message )
progressAdvance ( $step = 1 )
progressFinish ( )
progressStart ( $max )
section ( $message )
success ( $message )
table ( array $headers, array $rows )
text ( $message )
title ( $message )
warning ( $message )
write ( $messages, $newline = false, $type = self::OUTPUT_NORMAL )
writeln ( $messages, $type = self::OUTPUT_NORMAL )

Приватные методы

Метод Описание
autoPrependBlock ( )
autoPrependText ( )
createBlock ( $messages, $type = null, $style = null, $prefix = ' ', $padding = false, $escape = false )
getProgressBar ( ) : ProgressBar
reduceBuffer ( $messages )

Описание методов

__construct() публичный метод

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

ask() публичный метод

public ask ( $question, $default = null, $validator = null )

askHidden() публичный метод

public askHidden ( $question, $validator = null )

askQuestion() публичный метод

public askQuestion ( Symfony\Component\Console\Question\Question $question ) : string
$question Symfony\Component\Console\Question\Question
Результат string

block() публичный метод

Formats a message as a block of text.
public block ( string | array $messages, string | null $type = null, string | null $style = null, string $prefix = ' ', boolean $padding = false )
$messages string | array The message to write in the block
$type string | null The block type (added in [] on first line)
$style string | null The style to apply to the whole block
$prefix string The prefix for the block
$padding boolean Whether to add vertical padding

caution() публичный метод

public caution ( $message )

choice() публичный метод

public choice ( $question, array $choices, $default = null )
$choices array

comment() публичный метод

Formats a command comment.
public comment ( string | array $message )
$message string | array

confirm() публичный метод

public confirm ( $question, $default = true )

createProgressBar() публичный метод

public createProgressBar ( $max )

error() публичный метод

public error ( $message )

listing() публичный метод

public listing ( array $elements )
$elements array

newLine() публичный метод

public newLine ( $count = 1 )

note() публичный метод

public note ( $message )

progressAdvance() публичный метод

public progressAdvance ( $step = 1 )

progressFinish() публичный метод

public progressFinish ( )

progressStart() публичный метод

public progressStart ( $max )

section() публичный метод

public section ( $message )

success() публичный метод

public success ( $message )

table() публичный метод

public table ( array $headers, array $rows )
$headers array
$rows array

text() публичный метод

public text ( $message )

title() публичный метод

public title ( $message )

warning() публичный метод

public warning ( $message )

write() публичный метод

public write ( $messages, $newline = false, $type = self::OUTPUT_NORMAL )

writeln() публичный метод

public writeln ( $messages, $type = self::OUTPUT_NORMAL )