19 declare(strict_types=1);
42 $this->in_mailtemplates =
false;
43 $this->mail_templates = [];
46 public function endComponent(
string $component,
string $type): void
48 $this->component = null;
49 $this->in_mailtemplates =
false;
50 $this->mail_templates = [];
53 public function beginTag(
string $name, array $attributes): void
55 if ($name ===
'mailtemplates') {
56 $this->in_mailtemplates =
true;
59 if ($name !==
'context' || !$this->in_mailtemplates) {
63 $component = $attributes[
'component'] ?? null;
72 $attributes[
'path'] ?? null
74 $this->mail_templates[] = $attributes[
'id'];
77 public function endTag(
string $name): void
79 if ($name ===
'mailtemplates') {
80 $this->in_mailtemplates =
false;
84 if ($name !==
'module' && $name !==
'service') {
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i.e.
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
beginTag(string $name, array $attributes)
This is called when a tag starts in the context of the given component.
static insertFromXML(string $a_component, string $a_id, string $a_class, ?string $a_path)
endTag(string $name)
This is called when a tag ends in the context of the given component.
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...
__construct(protected ilDBInterface $db)
static clearFromXml(string $a_component, array $a_new_templates)