public static function JobScheduler::get in Job Scheduler 7.2
Same name and namespace in other branches
- 7 JobScheduler.inc \JobScheduler::get()
Produces a single instance of JobScheduler for a schedule name.
1 call to JobScheduler::get()
- job_scheduler_rebuild_scheduler in ./
job_scheduler.module - Rebuild a single scheduler.
File
- ./
JobScheduler.inc, line 27 - JobScheduler class.
Class
- JobScheduler
- Manage scheduled jobs.
Code
public static function get($name) {
static $schedulers;
// Instantiante a new scheduler for $name if we haven't done so yet.
if (!isset($schedulers[$name])) {
$class = variable_get('job_scheduler_class_' . $name, 'JobScheduler');
$schedulers[$name] = new $class($name);
}
return $schedulers[$name];
}