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) –
setDb(Omeka_Db $db)
Parameters:
setJobDispatcher(Omeka_Job_Dispatcher_DispatcherInterface $dispatcher)
Parameters:
setUser(User $user)

Set the given User object on the Job object.

Parameters:
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()

Project Versions

Previous topic

Libraries/Omeka/Job

Next topic

Omeka_Job_Factory

This Page