PHP 클래스 omnilight\scheduling\Schedule

상속: extends yii\base\Component
파일 보기 프로젝트 열기: omnilight/yii2-scheduling 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$cliScriptName The name of cli script

보호된 프로퍼티들

프로퍼티 타입 설명
$_events Event[] All of the events on the schedule.

공개 메소드들

메소드 설명
call ( string $callback, array $parameters = [] ) : Event Add a new callback event to the schedule.
command ( string $command ) : Event Add a new cli command event to the schedule.
dueEvents ( Application $app ) : Event[] Get all of the events on the schedule that are due.
exec ( string $command ) : Event Add a new command event to the schedule.
getEvents ( )

메소드 상세

call() 공개 메소드

Add a new callback event to the schedule.
public call ( string $callback, array $parameters = [] ) : Event
$callback string
$parameters array
리턴 Event

command() 공개 메소드

Add a new cli command event to the schedule.
public command ( string $command ) : Event
$command string
리턴 Event

dueEvents() 공개 메소드

Get all of the events on the schedule that are due.
public dueEvents ( Application $app ) : Event[]
$app yii\base\Application
리턴 Event[]

exec() 공개 메소드

Add a new command event to the schedule.
public exec ( string $command ) : Event
$command string
리턴 Event

getEvents() 공개 메소드

public getEvents ( )

프로퍼티 상세

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

All of the events on the schedule.
protected Event[],omnilight\scheduling $_events
리턴 Event[]

$cliScriptName 공개적으로 프로퍼티

The name of cli script
public $cliScriptName