19 declare(strict_types=1);
33 bool $isCreationContext =
false 34 ): ?\ILIAS\Cron\CronJob;
41 public function getCronJobData($id =
null,
bool $withInactiveJobsIncluded =
true): array;
43 public function registerJob(
string $a_component,
string $a_id,
string $a_class, ?
string $a_path): void;
48 public function unregisterJob(
string $a_component, array $a_xml_job_ids): void;
55 public function getPluginJobs(
bool $withOnlyActive =
false): array;
64 bool $wasManualExecution =
false 67 public function updateRunInformation(
string $jobId,
int $runningTimestamp,
int $aliveTimestamp): void;
75 bool $wasManuallyExecuted =
false 82 bool $wasManuallyExecuted =
false
getCronJobData($id=null, bool $withInactiveJobsIncluded=true)
Get cron job configuration/execution data.
Interface Observer Contains several chained tasks and infos about them.
deactivateJob(\ILIAS\Cron\CronJob $job, \DateTimeImmutable $when, \ilObjUser $actor, bool $wasManuallyExecuted=false)
createDefaultEntry(\ILIAS\Cron\CronJob $job, string $component, string $class, ?string $path)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
updateRunInformation(string $jobId, int $runningTimestamp, int $aliveTimestamp)
updateJobSchedule(\ILIAS\Cron\CronJob $job, ?JobScheduleType $scheduleType, ?int $scheduleValue)
unregisterJob(string $a_component, array $a_xml_job_ids)
getPluginJobs(bool $withOnlyActive=false)
resetJob(\ILIAS\Cron\CronJob $job)
getJobInstanceById(string $id)
registerJob(string $a_component, string $a_id, string $a_class, ?string $a_path)
activateJob(\ILIAS\Cron\CronJob $job, \DateTimeImmutable $when, \ilObjUser $actor, bool $wasManuallyExecuted=false)
getJobInstance(string $a_id, string $a_component, string $a_class, bool $isCreationContext=false)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
updateJobResult(\ILIAS\Cron\CronJob $job, \DateTimeImmutable $when, \ilObjUser $actor, JobResult $result, bool $wasManualExecution=false)