PHP Класс omnilight\scheduling\Schedule

Наследование: extends yii\base\Component
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$cliScriptName The name of cli script

Защищенные свойства (Protected)

Свойство Тип Описание
$_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