19 declare(strict_types=1);
33 $bh->setComponents(null);
38 $this->has_badges =
false;
39 $this->component_id = null;
42 public function endComponent(
string $component,
string $type): void
44 $this->has_badges =
false;
45 $this->component_id = null;
48 public function beginTag(
string $name, array $attributes): void
50 if ($name ===
"module" || $name ===
"service") {
51 $this->component_id = $attributes[
"id"] ?? null;
55 if ($name !==
'badges') {
59 if ($this->component_id === null) {
60 throw new \RuntimeException(
61 "Found $name-tag outside of module or service." 66 $this->has_badges =
true;
69 public function endTag(
string $name): void
71 if ($name ===
"module" || $name ===
"service") {
72 $this->component_id = null;
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
static updateFromXML(string $a_component_id)
Import component definition.
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...
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends. ...
__construct(protected \ilDBInterface $db)
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.