PHP Class think\console\Output

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

Protected Properties

Property Type Description
$styles

Public Methods

Method 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 ) 输出信息并换行

Protected Methods

Method Description
askQuestion ( Input $input, Question $question )
block ( $style, $message )

Method Details

__call() public method

public __call ( $method, $args )

__construct() public method

public __construct ( $driver = 'console' )

ask() public method

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

askHidden() public method

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

askQuestion() protected method

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

block() protected method

protected block ( $style, $message )

choice() public method

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

confirm() public method

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

describe() public method

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

getVerbosity() public method

public getVerbosity ( )

isDebug() public method

public isDebug ( )

isQuiet() public method

public isQuiet ( )

isVerbose() public method

public isVerbose ( )

isVeryVerbose() public method

public isVeryVerbose ( )

newLine() public method

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

renderException() public method

public renderException ( Exception $e )
$e Exception

setVerbosity() public method

public setVerbosity ( $level )

write() public method

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

writeln() public method

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

Property Details

$styles protected property

protected $styles