ILIAS  trunk Revision v11.0_alpha-1689-g66c127b4ae8
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
JobManager.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Cron\Job;
22 
23 interface JobManager
24 {
25  public function runActiveJobs(\ilObjUser $actor): void;
26 
27  public function runJobManual(string $jobId, \ilObjUser $actor): bool;
28 
29  public function resetJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor): void;
30 
31  public function activateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted = false): void;
32 
33  public function deactivateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted = false): void;
34 
35  public function isJobActive(string $jobId): bool;
36 
37  public function isJobInactive(string $jobId): bool;
38 
39  public function ping(string $jobId): void;
40 }
runJobManual(string $jobId, \ilObjUser $actor)
Interface Observer Contains several chained tasks and infos about them.
activateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted=false)
resetJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor)
deactivateJob(\ILIAS\Cron\CronJob $job, \ilObjUser $actor, bool $wasManuallyExecuted=false)