public static function UltimateCronJob::getProgressMultiple in Ultimate Cron 7.2
Get multiple job progresses.
Parameters
array $jobs: Jobs to get progress for.
Return value
array Progress of jobs, keyed by job name.
File
- ./
ultimate_cron.job.inc, line 638 - Job class for Ultimate Cron.
Class
- UltimateCronJob
- Class for handling cron jobs.
Code
public static function getProgressMultiple($jobs) {
$launchers = array();
foreach ($jobs as $job) {
$launchers[$job
->getPlugin('launcher')->name][$job->name] = $job;
}
$progresses = array();
foreach ($launchers as $launcher => $jobs) {
$progresses += _ultimate_cron_plugin_require('launcher', $launcher)
->getProgressMultiple($jobs);
}
return $progresses;
}