PHP Class think\console\Output

See also: think\console\output\driver\Console::setDecorated
See also: think\console\output\driver\Buffer::fetch
Afficher le fichier Open project: top-think/framework Class Usage Examples

Protected Properties

Свойство Type Description
$styles

Méthodes publiques

Méthode Description
__call ( $method, $args )
__construct ( $driver = 'console' )
ask ( Input $input, $question, $default = null, $validator = null )
askHidden ( Input $input, $question, $validator = null )
choice ( Input $input, $question, array $choices, $default = null )
confirm ( Input $input, $question, $default = true )
describe ( $object, array $options = [] )
getVerbosity ( )
isDebug ( )
isQuiet ( )
isVerbose ( )
isVeryVerbose ( )
newLine ( integer $count = 1 ) 输出空行
renderException ( Exception $e )
setVerbosity ( $level )
write ( string $messages, boolean $newline = false, integer $type = self::OUTPUT_NORMAL ) 输出信息
writeln ( string $messages, integer $type = self::OUTPUT_NORMAL ) 输出信息并换行

Méthodes protégées

Méthode Description
askQuestion ( Input $input, Question $question )
block ( $style, $message )

Method Details

__call() public méthode

public __call ( $method, $args )

__construct() public méthode

public __construct ( $driver = 'console' )

ask() public méthode

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

askHidden() public méthode

public askHidden ( Input $input, $question, $validator = null )
$input Input

askQuestion() protected méthode

protected askQuestion ( Input $input, Question $question )
$input Input
$question think\console\output\Question

block() protected méthode

protected block ( $style, $message )

choice() public méthode

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

confirm() public méthode

public confirm ( Input $input, $question, $default = true )
$input Input

describe() public méthode

public describe ( $object, array $options = [] )
$options array

getVerbosity() public méthode

public getVerbosity ( )

isDebug() public méthode

public isDebug ( )

isQuiet() public méthode

public isQuiet ( )

isVerbose() public méthode

public isVerbose ( )

isVeryVerbose() public méthode

public isVeryVerbose ( )

newLine() public méthode

输出空行
public newLine ( integer $count = 1 )
$count integer

renderException() public méthode

public renderException ( Exception $e )
$e Exception

setVerbosity() public méthode

public setVerbosity ( $level )

write() public méthode

输出信息
public write ( string $messages, boolean $newline = false, integer $type = self::OUTPUT_NORMAL )
$messages string
$newline boolean
$type integer

writeln() public méthode

输出信息并换行
public writeln ( string $messages, integer $type = self::OUTPUT_NORMAL )
$messages string
$type integer

Property Details

$styles protected_oe property

protected $styles