Omeka_Job_AbstractJob¶
- class Omeka_Job_AbstractJob¶
Package: Job
Abstract implementation of an Omeka job.
Most plugin implementations of jobs will extend this class to gain convenientaccess to the database and other potentially important resources.
- property _db¶
- property _dispatcher¶
- property _user¶
- property _options¶
- __construct($options)¶
Parameters: - $options (unknown) –
- _setOptions($options)¶
Set all the options associated with this task.
This is a convenience method that calls setter methods for the optionsgiven in the array. If an element in the array does not have anassociated setter method, it will be passed into the options array.
Parameters: - $options (unknown) –
- setJobDispatcher(Omeka_Job_Dispatcher_DispatcherInterface $dispatcher)¶
Parameters: - $dispatcher (Omeka_Job_Dispatcher_DispatcherInterface) –
- getUser()¶
Get the User currently set on this Job, if any.
Returns: User|null
- resend()¶
Resend the job using the same options that were passed to the current job.
- perform()¶