PHP 클래스 ConsoleKit\Widgets\Checklist

$checklist = new ConsoleKit\Widgets\Checklist($console); $checklist->run(array( 'Creating directory structure' => function() { code return $success; // bool }, 'Downloading scripts' => function() { code return $success; // bool } )); Will print: Creating directory structure OK Downloading scripts OK
상속: extends AbstractWidget
파일 보기 프로젝트 열기: maximebf/consolekit 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$errorColor
$errorText
$maxMessageLength
$successColor
$successText

공개 메소드들

메소드 설명
getMaxMessageLength ( )
run ( array $steps )
runArray ( $array, $message, $callback, $useKeyInMessage = false )
setErrorText ( $text, $color = Colors::RED )
setMaxMessageLength ( $length )
setSuccessText ( $text, $color = Colors::GREEN )
step ( $message, $callback, $maxMessageLength = null )

메소드 상세

getMaxMessageLength() 공개 메소드

public getMaxMessageLength ( )

run() 공개 메소드

public run ( array $steps )
$steps array

runArray() 공개 메소드

public runArray ( $array, $message, $callback, $useKeyInMessage = false )

setErrorText() 공개 메소드

public setErrorText ( $text, $color = Colors::RED )

setMaxMessageLength() 공개 메소드

public setMaxMessageLength ( $length )

setSuccessText() 공개 메소드

public setSuccessText ( $text, $color = Colors::GREEN )

step() 공개 메소드

public step ( $message, $callback, $maxMessageLength = null )

프로퍼티 상세

$errorColor 보호되어 있는 프로퍼티

protected $errorColor

$errorText 보호되어 있는 프로퍼티

protected $errorText

$maxMessageLength 보호되어 있는 프로퍼티

protected $maxMessageLength

$successColor 보호되어 있는 프로퍼티

protected $successColor

$successText 보호되어 있는 프로퍼티

protected $successText