$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
파일 보기
프로젝트 열기: 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 ) |