19declare(strict_types=1);
22 protected \ilDBInterface
$db;
36 $this->component_id =
null;
39 public function endComponent(
string $component,
string $type): void
41 $this->component_id =
null;
44 public function beginTag(
string $name, array $attributes): void
46 if ($name ===
"module" || $name ===
"service") {
47 $this->component_id = $attributes[
"id"] ??
null;
50 if ($name !==
"systemcheck" || $name !==
"systemcheck_task") {
53 if ($this->component_id ===
null) {
54 throw new \RuntimeException(
55 "Found $name-tag outside of module or service."
59 if ($name ===
"systemcheck") {
62 if ($name ===
"systemcheck_task") {
65 $tasks->updateFromComponentDefinition((
string) ($attributes[
'identifier'] ??
''));
69 public function endTag(
string $name): void
71 if ($name ===
"module" || $name ===
"service") {
72 $this->component_id =
null;
static getInstanceByGroupId(int $a_group_id)
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends.
endTag(string $name)
This is called when a tag ends in the context of the given component.
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
__construct(\ilDBInterface $db)
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i....