Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
compileParameters ( array $parameters ) : string | Compile parameters for a command. | |
id ( ) : string | Generate a unique task id |
public afterCallbacks ( ) : array | ||
return | array |
public beforeCallbacks ( ) : array | ||
return | array |
protected compileParameters ( array $parameters ) : string | ||
$parameters | array | |
return | string |
public dismissEvent ( integer $key ) | ||
$key | integer |
public errorCallbacks ( ) : array | ||
return | array |
public pingBefore ( string $url ) | ||
$url | string |
protected array $afterCallbacks | ||
return | array |
protected array $beforeCallbacks | ||
return | array |
protected array $errorCallbacks | ||
return | array |
protected array $events | ||
return | array |