24 public function register($name) {
25 $path_parts = pathinfo($name);
26 switch ($path_parts[
"extension"]) {
28 $this->il_template->addJavaScript($name);
31 $this->il_template->addCss($name);
37 throw new \InvalidArgumentException(
"Can't handle resource '$name'");
An exception for terminatinating execution or to throw for unit testing.
Plumbing for ILIAS, tries to guess.
__construct(\ilTemplate $il_template)
special template class to simplify handling of ITX/PEAR
Registry for resources required by rendered output like Javascript or CSS.