You are here

public function UltimateCronJob::sendSignal in Ultimate Cron 7.2

Send a signal.

See also

UltimateCronSignal::set()

File

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

Class

UltimateCronJob
Class for handling cron jobs.

Code

public function sendSignal($signal, $persist = FALSE) {
  if ($persist) {
    $class = _ultimate_cron_get_class('signal');
    $class::set($this->name, $signal);
  }
  else {
    self::$signals[$this->name][$signal] = TRUE;
  }
}