PHP 클래스 MaintenanceScript, testswarm

It is not the entry point however.
부터: 1.0.0
저자: Timo Tijhof
파일 보기 프로젝트 열기: jquery/testswarm

공개 메소드들

메소드 설명
newFromContext ( TestSwarmContext $context )
run ( )

보호된 메소드들

메소드 설명
checkAtty ( ) : boolean
cliInput ( $prefix = '> ' ) : string
cliInputSecret ( $prefix = '> ', $type = 'stars' ) : string Retreive a secret value from the cli.
displayHelp ( )
error ( $msg )
execute ( )
getContext ( )
getFlag ( $key )
getOption ( $name )
init ( )
out ( $text )
outRaw ( $text )
parseCliArguments ( )
registerFlag ( $key, $type, string $description ) Register a flag, usage any of these 4: - php script.php -a -b value -c "value" -d="value"
registerOption ( $name, $type, string $description ) Register an option, usage any of these 4: - php script.php --foo --bar=value --quux="value"
setDescription ( $description )
timeWarningForScriptWill ( $action, $seconds = 10 )
wait ( $seconds, $message = '' )

비공개 메소드들

메소드 설명
__construct ( )

메소드 상세

checkAtty() 최종 보호된 메소드

final protected checkAtty ( ) : boolean
리턴 boolean

cliInput() 보호된 메소드

protected cliInput ( $prefix = '> ' ) : string
리턴 string

cliInputSecret() 보호된 메소드

Based on http://www.dasprids.de/blog/2008/08/22/getting-a-password-hidden-from-stdin-with-php-cli.
protected cliInputSecret ( $prefix = '> ', $type = 'stars' ) : string
리턴 string

displayHelp() 보호된 메소드

protected displayHelp ( )

error() 보호된 메소드

protected error ( $msg )

execute() 추상적인 보호된 메소드

abstract protected execute ( )

getContext() 최종 보호된 메소드

final protected getContext ( )

getFlag() 보호된 메소드

protected getFlag ( $key )

getOption() 보호된 메소드

protected getOption ( $name )

init() 추상적인 보호된 메소드

abstract protected init ( )

newFromContext() 공개 정적인 메소드

public static newFromContext ( TestSwarmContext $context )
$context TestSwarmContext

out() 보호된 메소드

protected out ( $text )

outRaw() 보호된 메소드

protected outRaw ( $text )

parseCliArguments() 보호된 메소드

protected parseCliArguments ( )

registerFlag() 보호된 메소드

Register a flag, usage any of these 4: - php script.php -a -b value -c "value" -d="value"
protected registerFlag ( $key, $type, string $description )
$description string

registerOption() 보호된 메소드

Register an option, usage any of these 4: - php script.php --foo --bar=value --quux="value"
protected registerOption ( $name, $type, string $description )
$description string

run() 공개 메소드

public run ( )

setDescription() 최종 보호된 메소드

final protected setDescription ( $description )

timeWarningForScriptWill() 보호된 메소드

protected timeWarningForScriptWill ( $action, $seconds = 10 )

wait() 보호된 메소드

protected wait ( $seconds, $message = '' )
$seconds int