ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilCronJobRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 {
23  public function getJobInstanceById(string $id): ?ilCronJob;
24 
25  public function getJobInstance(
26  string $a_id,
27  string $a_component,
28  string $a_class,
29  bool $isCreationContext = false
30  ): ?ilCronJob;
31 
38  public function getCronJobData($id = null, bool $withInactiveJobsIncluded = true): array;
39 
40  public function registerJob(string $a_component, string $a_id, string $a_class, ?string $a_path): void;
41 
42  public function unregisterJob(string $a_component, array $a_xml_job_ids): void;
43 
44  public function createDefaultEntry(ilCronJob $job, string $component, string $class, ?string $path): void;
45 
50  public function getPluginJobs(bool $withOnlyActive = false): array;
51 
52  public function resetJob(ilCronJob $job): void;
53 
54  public function updateJobResult(
55  ilCronJob $job,
56  DateTimeImmutable $when,
57  ilObjUser $actor,
58  ilCronJobResult $result,
59  bool $wasManualExecution = false
60  ): void;
61 
62  public function updateRunInformation(string $jobId, int $runningTimestamp, int $aliveTimestamp): void;
63 
64  public function updateJobSchedule(ilCronJob $job, ?int $scheduleType, ?int $scheduleValue): void;
65 
66  public function activateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted = false): void;
67 
68  public function deactivateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted = false): void;
69 
70  public function findAll(): ilCronJobCollection;
71 }
activateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false)
registerJob(string $a_component, string $a_id, string $a_class, ?string $a_path)
deactivateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false)
$path
Definition: ltiservices.php:32
getJobInstanceById(string $id)
updateRunInformation(string $jobId, int $runningTimestamp, int $aliveTimestamp)
unregisterJob(string $a_component, array $a_xml_job_ids)
updateJobSchedule(ilCronJob $job, ?int $scheduleType, ?int $scheduleValue)
updateJobResult(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, ilCronJobResult $result, bool $wasManualExecution=false)
getCronJobData($id=null, bool $withInactiveJobsIncluded=true)
Get cron job configuration/execution data.
resetJob(ilCronJob $job)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
getJobInstance(string $a_id, string $a_component, string $a_class, bool $isCreationContext=false)
getPluginJobs(bool $withOnlyActive=false)
createDefaultEntry(ilCronJob $job, string $component, string $class, ?string $path)