PHP 클래스 Symfony\Component\Console\Style\SymfonyStyle

저자: Kevin Bond ([email protected])
상속: extends Symfony\Component\Console\Style\OutputStyle
파일 보기 프로젝트 열기: symfony/symfony 1 사용 예제들

공개 메소드들

메소드 설명
__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 )