ILIAS  release_8 Revision v8.24
interface.ilCronJobRepository.php
Go to the documentation of this file.
1<?php
2
19declare(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}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
User class.
getJobInstance(string $a_id, string $a_component, string $a_class, bool $isCreationContext=false)
createDefaultEntry(ilCronJob $job, string $component, string $class, ?string $path)
updateRunInformation(string $jobId, int $runningTimestamp, int $aliveTimestamp)
deactivateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false)
getCronJobData($id=null, bool $withInactiveJobsIncluded=true)
Get cron job configuration/execution data.
updateJobSchedule(ilCronJob $job, ?int $scheduleType, ?int $scheduleValue)
updateJobResult(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, ilCronJobResult $result, bool $wasManualExecution=false)
getPluginJobs(bool $withOnlyActive=false)
resetJob(ilCronJob $job)
unregisterJob(string $a_component, array $a_xml_job_ids)
activateJob(ilCronJob $job, DateTimeImmutable $when, ilObjUser $actor, bool $wasManuallyExecuted=false)
getJobInstanceById(string $id)
registerJob(string $a_component, string $a_id, string $a_class, ?string $a_path)
$path
Definition: ltiservices.php:32