public static function UltimateCronProgress::factory in Ultimate Cron 7.2
Singleton factory.
Parameters
string $name: Name of job.
float $interval: How often the database should be updated with the progress.
Return value
UltimateCronProgress The object.
File
- ./
ultimate_cron.progress.inc, line 40 - Pseudo namespace for progress functions.
Class
- UltimateCronProgress
- Class for handling Ultimate Cron progress.
Code
public static function factory($name, $interval = 1) {
if (!isset(self::$instances[$name])) {
self::$instances[$name] = new UltimateCronProgress($name, $interval);
}
self::$instances[$name]->interval = $interval;
return self::$instances[$name];
}