19declare(strict_types=1);
42 $this->in_mailtemplates =
false;
43 $this->mail_templates = [];
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) {
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') {
__construct(protected ilDBInterface $db)
beginTag(string $name, array $attributes)
This is called when a tag starts 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.
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...
beginComponent(string $component, string $type)
This method is called when parsing of component.xml for the given component starts.
static clearFromXml(string $a_component, array $a_new_templates)
static insertFromXML(string $a_component, string $a_id, string $a_class, ?string $a_path)
An ilComponentDefinitionProcessor processes some attributes from a component.xml (i....