IJob
Interface IJob
Tags
Table of Contents
- execute() : mixed
- Run the background job with the registered argument
- getArgument() : mixed
- Get the argument associated with the background job This is the argument that will be passed to the background job
- getId() : int
- Get the id of the background job This id is determined by the job list when a job is added to the list
- getLastRun() : int
- Get the last time this job was run as unix timestamp
- setArgument() : mixed
- setId() : mixed
- setLastRun() : mixed
Methods
execute()
Run the background job with the registered argument
public
execute(IJobList $jobList[, ILogger|null $logger = null ]) : mixed
Parameters
Tags
Return values
mixed —getArgument()
Get the argument associated with the background job This is the argument that will be passed to the background job
public
getArgument() : mixed
Tags
Return values
mixed —getId()
Get the id of the background job This id is determined by the job list when a job is added to the list
public
getId() : int
Tags
Return values
int —getLastRun()
Get the last time this job was run as unix timestamp
public
getLastRun() : int
Tags
Return values
int —setArgument()
public
setArgument(mixed $argument) : mixed
Parameters
- $argument : mixed
Tags
Return values
mixed —setId()
public
setId(int $id) : mixed
Parameters
- $id : int
Tags
Return values
mixed —setLastRun()
public
setLastRun(int $lastRun) : mixed
Parameters
- $lastRun : int