3 declare(strict_types=1);
23 protected \ilDBInterface
$db;
40 public function endComponent(
string $component,
string $type): void
44 public function beginTag(
string $name, array $attributes): void
46 if ($name !==
"secure_path") {
54 $ilWACSecurePath->setPath($attributes[
"path"]);
55 $ilWACSecurePath->create();
57 $ilWACSecurePath->setCheckingClass($attributes[
"checking-class"]);
58 $ilWACSecurePath->setInSecFolder((
bool) ($attributes[
"in-sec-folder"] ?? null));
59 $ilWACSecurePath->setComponentDirectory(realpath(__DIR__ .
"/../../../../" . $this->component));
60 $ilWACSecurePath->update();
63 public function endTag(
string $name): void
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static findOrFail($primary_key, array $add_constructor_args=[])
Tries to find the object and throws an Exception if object is not found, instead of returning null...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(\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. ...
purge()
This methods is supposed to purge existing data in the provider of the component, so new components c...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
endTag(string $name)
This is called when a tag ends in the context of the given component.