19 declare(strict_types=1);
42 if (in_array(PHP_SAPI, array_map(
'strtolower', $this->
getValidPhpApis()),
true)) {
43 $this->cronManager->runActiveJobs($actor);
49 return $this->cronManager->runJobManual($jobId, $actor);
54 $this->cronManager->resetJob($job, $actor);
59 $this->cronManager->activateJob($job, $actor, $wasManuallyExecuted);
64 $this->cronManager->deactivateJob($job, $actor, $wasManuallyExecuted);
69 return $this->cronManager->isJobActive($jobId);
74 return $this->cronManager->isJobInactive($jobId);
77 public function ping(
string $jobId): void
79 $this->cronManager->ping($jobId);
runActiveJobs(ilObjUser $actor)
runJobManual(string $jobId, ilObjUser $actor)
ilCronManager $cronManager
isJobActive(string $jobId)
isJobInactive(string $jobId)
activateJob(ilCronJob $job, ilObjUser $actor, bool $wasManuallyExecuted=false)
__construct(ilCronManager $cronManager)
deactivateJob(ilCronJob $job, ilObjUser $actor, bool $wasManuallyExecuted=false)
resetJob(ilCronJob $job, ilObjUser $actor)