19declare(strict_types=1);
37 $this->component_id =
'';
40 public function endComponent(
string $component,
string $type): void
42 $this->component_id =
'';
45 public function beginTag(
string $name, array $attributes): void
47 if ($name ===
"module" || $name ===
"service") {
48 $this->component_id = $attributes[
"id"] ??
'';
52 if ($name !==
"logging") {
56 if ($this->component_id ===
'') {
57 throw new \RuntimeException(
58 "Found $name-tag outside of module or service in {$this->component_id}."
64 public function endTag(
string $name): void
66 if ($name ===
"module" || $name ===
"service") {
67 $this->component_id =
'';
static updateFromXML($a_component_id)
__construct(ilDBInterface $db)
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends.
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...
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.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i....