You are here

public static function UltimateCronJob::isLockedMultiple in Ultimate Cron 7.2

Get locked state for multiple jobs.

Parameters

array $jobs: Jobs to check locks for.

File

./ultimate_cron.job.inc, line 458
Job class for Ultimate Cron.

Class

UltimateCronJob
Class for handling cron jobs.

Code

public static function isLockedMultiple($jobs) {
  $launchers = array();
  foreach ($jobs as $job) {
    $launchers[$job
      ->getPlugin('launcher')->name][$job->name] = $job;
  }
  $locked = array();
  foreach ($launchers as $launcher => $jobs) {
    $locked += _ultimate_cron_plugin_require('launcher', $launcher)
      ->isLockedMultiple($jobs);
  }
  return $locked;
}