PHP 클래스 PHPDaemon\Core\Bootstrap

저자: Vasily Zorin ([email protected])
상속: use trait PHPDaemon\Traits\ClassWatchdog, use trait PHPDaemon\Traits\StaticObjectWatchdog
파일 보기 프로젝트 열기: kakserpom/phpdaemon 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$commands array List of commands
$params array Command-line params
$pid integer Master process ID

공개 메소드들

메소드 설명
getArgs ( array $args ) : array Parses command-line arguments.
init ( $configFile = null ) : void Actions on early startup.
runworker ( ) : void Runworker.
start ( ) : void Start master.
stop ( integer $mode = 1 ) : void Stop script.

보호된 메소드들

메소드 설명
printHelp ( ) : void Print help
printUsage ( ) : void Print ussage

메소드 상세

getArgs() 공개 정적인 메소드

Parses command-line arguments.
public static getArgs ( array $args ) : array
$args array $_SERVER ['argv']
리턴 array Arguments

init() 공개 정적인 메소드

Actions on early startup.
public static init ( $configFile = null ) : void
리턴 void

printHelp() 보호된 정적인 메소드

Print help
protected static printHelp ( ) : void
리턴 void

printUsage() 보호된 정적인 메소드

Print ussage
protected static printUsage ( ) : void
리턴 void

runworker() 공개 정적인 메소드

Runworker.
public static runworker ( ) : void
리턴 void

start() 공개 정적인 메소드

Start master.
public static start ( ) : void
리턴 void

stop() 공개 정적인 메소드

Stop script.
public static stop ( integer $mode = 1 ) : void
$mode integer
리턴 void

프로퍼티 상세

$commands 보호되어 있는 정적으로 프로퍼티

List of commands
protected static array $commands
리턴 array

$params 보호되어 있는 정적으로 프로퍼티

Command-line params
protected static array $params
리턴 array

$pid 보호되어 있는 정적으로 프로퍼티

Master process ID
protected static int $pid
리턴 integer