Свойство | Тип | Описание | |
---|---|---|---|
$afterCallbacks | array | The array of callbacks to be run after all the event is finished. | |
$beforeCallbacks | array | The array of callbacks to be run before all the events are finished | |
$errorCallbacks | array | The array of callbacks to call in case of an error. | |
$events | array | All of the events on the schedule. |
Метод | Описание | |
---|---|---|
after ( Closure $callback ) | Register a callback to be called after the operation. | |
afterCallbacks ( ) : array | Return all registered after callbacks | |
before ( Closure $callback ) | Register a callback to be called before the operation. | |
beforeCallbacks ( ) : array | Return all registered before callbacks | |
dismissEvent ( integer $key ) | Dismiss an event after it is finished | |
dueEvents ( ) : array | Get all of the events on the schedule that are due. | |
errorCallbacks ( ) : array | Return all registered error callbacks | |
events ( array $events = null ) : array | Get or set the events of the schedule object | |
onError ( Closure $callback ) | Register a callback to call in case of an error | |
pingBefore ( string $url ) | Register a callback to ping a given URL before the job runs. | |
run ( string $command, array $parameters = [] ) : |
Add a new event to the schedule object. | |
then ( Closure $callback ) | Register a callback to be called after the operation. | |
thenPing ( string $url ) | Register a callback to ping a given URL after the job runs. |
Метод | Описание | |
---|---|---|
compileParameters ( array $parameters ) : string | Compile parameters for a command. | |
id ( ) : string | Generate a unique task id |
public afterCallbacks ( ) : array | ||
Результат | array |
public beforeCallbacks ( ) : array | ||
Результат | array |
protected compileParameters ( array $parameters ) : string | ||
$parameters | array | |
Результат | string |
public dismissEvent ( integer $key ) | ||
$key | integer |
public errorCallbacks ( ) : array | ||
Результат | array |
public pingBefore ( string $url ) | ||
$url | string |
protected array $afterCallbacks | ||
Результат | array |
protected array $beforeCallbacks | ||
Результат | array |
protected array $errorCallbacks | ||
Результат | array |
protected array $events | ||
Результат | array |