Package: Job\Dispatcher
Dispatches jobs in Omeka.
This provides a clean interface to adapter classes that deal with the detailsof how to dispatch jobs. It is initialized in the Jobs bootstrap resource andcan be accessed via the registry.
Standard usage, where Job_Class_Name corresponds to a valid class name for a class implementing Omeka_JobInterface:
$dispatcher = Zend_Registry::get('job_dispatcher'); $dispatcher->send('Job_Class_Name', array( 'firstOption' => 'text', 'secondOption' => 2 ));
Parameters: |
|
---|
Set the user.
Parameters: |
|
---|
Get the user.
Returns: | User|null |
---|
Set the default adapter.
Parameters: |
|
---|
Set the long running adapter.
Parameters: |
|
---|
Set the name of the queue to which default jobs will be sent.
NOTE: This may be ignored by adapters that do not understand the notionof named queues (or queues in general).
Parameters: |
|
---|
Set the name of the queue to which long-running jobs will be sent.
NOTE: This may be ignored by adapters that do not understand the notionof named queues (or queues in general).
Parameters: |
|
---|
Dispatch a job using the default dispatcher.
Parameters: |
|
---|
Dispatch a job using the long-running dispatcher.
Parameters: |
|
---|
Parameters: |
|
---|
Parameters: |
|
---|