PHP 클래스 mult1mate\crontab\TaskRunner

저자: mult1mate
파일 보기 프로젝트 열기: MUlt1mate/cron-manager 1 사용 예제들

공개 메소드들

메소드 설명
checkAndRunTasks ( array $tasks ) Runs active tasks if current time matches with time expression
getRunDates ( string $time, integer $count = 10 ) : array Returns next run dates for time expression
parseAndRunCommand ( string $command ) : mixed Parses given command, creates new class object and calls its method via call_user_func_array
runTask ( mult1mate\crontab\TaskInterface $task ) : string Runs task and returns output

메소드 상세

checkAndRunTasks() 공개 정적인 메소드

Runs active tasks if current time matches with time expression
public static checkAndRunTasks ( array $tasks )
$tasks array

getRunDates() 공개 정적인 메소드

Returns next run dates for time expression
public static getRunDates ( string $time, integer $count = 10 ) : array
$time string
$count integer
리턴 array

parseAndRunCommand() 공개 정적인 메소드

Parses given command, creates new class object and calls its method via call_user_func_array
public static parseAndRunCommand ( string $command ) : mixed
$command string
리턴 mixed

runTask() 공개 정적인 메소드

Runs task and returns output
public static runTask ( mult1mate\crontab\TaskInterface $task ) : string
$task mult1mate\crontab\TaskInterface
리턴 string