CheckForUpdatesJob
class CheckForUpdatesJob extends AbstractQueuedJob implements QueuedJob (View source)
Refresh report job. Runs as a queued job.
Properties
protected | stdClass | $jobData | from AbstractQueuedJob | |
protected | array | $messages | from AbstractQueuedJob | |
protected | int | $totalSteps | from AbstractQueuedJob | |
protected | int | $currentStep | from AbstractQueuedJob | |
protected | bool | $isComplete | from AbstractQueuedJob |
Methods
Extensions can have a construct but don't have too.
Sets a data object for persisting by adding its id and type to the serialised vars
Method for determining whether the job is finished - you may override it if there's more to it than just this
No description
Gets custom config settings to use when running the job.
Sets custom config settings to use when the job is run.
Convenience methods for setting and getting job data
Details
__construct($params = array())
Extensions can have a construct but don't have too.
Without a construct, it's impossible to create a job in the CMS
string
getTitle()
Define the title
protected
setObject(DataObject $object, string $name = 'Object')
Sets a data object for persisting by adding its id and type to the serialised vars
protected DataObject|void
getObject(string $name = 'Object')
No description
string
getSignature()
Return a signature for this queued job
protected string
randomSignature()
Generate a somewhat random signature
useful if you're want to make sure something is always added
getJobType()
Define the type.
setup()
Create the instance of the task
prepareForRestart()
Run when an already setup job is being restarted.
process()
Processes the task as a job
jobFinished()
Method for determining whether the job is finished - you may override it if there's more to it than just this
afterComplete()
No description
getJobData()
No description
setJobData(int $totalSteps, int $currentStep, bool $isComplete, stdClass $jobData, array $messages)
No description
array|null
getCustomConfig()
Gets custom config settings to use when running the job.
setCustomConfig(array $config)
Sets custom config settings to use when the job is run.
addMessage(string $message, string $severity = 'INFO')
No description
__set(mixed $name, mixed $value)
Convenience methods for setting and getting job data
mixed
__get(mixed $name)
Retrieve some job data