19declare(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") {
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;
endComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component ends.
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
__construct(\ilDBInterface $db)
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
endTag(string $name)
This is called when a tag ends in the context of the given component.
static updateFromXML(string $a_component_id)
Import component definition.
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i....