Omeka_Job_Mock

class Omeka_Job_Mock

Package: Job

Mock job class for unit tests.

property options
property performed
property _db
property _dispatcher
property _user
property _options
__construct($options)
Parameters:
  • $options (unknown) –
perform()
getDb()

Getter method to expose protected properties.

getDispatcher()

Getter method to expose protected properties.

getMiscOptions()
_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.

Project Versions

Previous topic

Omeka_Job_JobInterface

Next topic

Libraries/Omeka/Job/Dispatcher

This Page