19 declare(strict_types=1);
23 protected \ilDBInterface
$db;
35 $bh->setComponents(null);
40 $this->has_badges =
false;
41 $this->component_id = null;
46 $this->has_badges =
false;
47 $this->component_id = null;
52 if ($name ===
"module" || $name ===
"service") {
53 $this->component_id = $attributes[
"id"] ?? null;
57 if ($name !==
'badges') {
61 if ($this->component_id === null) {
62 throw new \RuntimeException(
63 "Found $name-tag outside of module or service." 68 $this->has_badges =
true;
73 if ($name ===
"module" || $name ===
"service") {
74 $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(\ilDBInterface $db)
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.