You are here

public function UltimateCronJob::getSignal in Ultimate Cron 7.2

Get a signal and clear it if found.

See also

UltimateCronSignal::get()

File

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

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function getSignal($signal) {
  if (isset(self::$signals[$this->name][$signal])) {
    unset(self::$signals[$this->name][$signal]);
    return TRUE;
  }
  $class = _ultimate_cron_get_class('signal');
  return $class::get($this->name, $signal);
}