3declare(strict_types=1);
24use InvalidArgumentException;
42 public function register(
string $name):
void
44 $path_parts = pathinfo(
$name);
45 switch ($path_parts[
"extension"]) {
47 $this->il_template->addJavaScript(
$name,
true, 1);
50 $this->il_template->addCss(
$name);
56 throw new InvalidArgumentException(
"Can't handle resource '$name'");
Plumbing for ILIAS, tries to guess.
__construct(ilGlobalTemplateInterface $il_template)
ilGlobalTemplateInterface $il_template
Registry for resources required by rendered output like Javascript or CSS.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...