19 declare(strict_types=1);
57 public function endComponent(
string $component,
string $type): void
59 $this->component = null;
63 public function beginTag(
string $name, array $attributes): void
65 if ($name !==
"cron") {
69 $component = $attributes[
"component"] ?? null;
74 $this->cronRepository->registerJob(
78 ($attributes[
"path"] ?? null)
81 $this->has_cron[] = $attributes[
"id"];
84 public function endTag(
string $name): void
86 if ($name !==
"module" && $name !==
"service") {
90 $this->cronRepository->unregisterJob($this->component, $this->has_cron);
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends. ...
Readable part of repository interface to ilComponentDataDB.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
readonly ilCronJobRepository $cronRepository
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
endTag(string $name)
This is called when a tag ends in the context of the given component.
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
__construct(private readonly ilDBInterface $db, ilSetting $setting, ilComponentRepository $componentRepository, ilComponentFactory $componentFactory)