ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
interface.ilCronJobRepository.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  public function getJobInstanceById(string $id): ?ilCronJob;
26 
27  public function getJobInstance(
28  string $a_id,
29  string $a_component,
30  string $a_class,
31  bool $isCreationContext = false
32  ): ?ilCronJob;
33 
39  public function getCronJobData($id = null, bool $withInactiveJobsIncluded = true): array;
40 
41  public function registerJob(string $a_component, string $a_id, string $a_class, ?string $a_path): void;
42 
43  public function unregisterJob(string $a_component, array $a_xml_job_ids): void;
44 
45  public function createDefaultEntry(ilCronJob $job, string $component, string $class, ?string $path): void;
46 
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, ?CronJobScheduleType $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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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, ?CronJobScheduleType $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)