3 declare(strict_types=1);
45 return $this->tpl->setCurrentBlock($name);
53 return $this->tpl->parseCurrentBlock();
61 return $this->tpl->touchBlock($name);
69 $this->tpl->setVariable($name, $value);
75 public function get(
string $block = null):
string 77 if ($block === null) {
78 $block =
"__global__";
80 return $this->tpl->get($block);
88 $this->global_tpl->addOnLoadCode($code);
ilGlobalTemplateInterface $global_tpl
setVariable(string $name, $value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Wraps an ilTemplate to only provide smaller interface.
addOnLoadCode(string $code)
__construct(ilGlobalTemplateInterface $global_tpl, ilTemplate $tpl)
setCurrentBlock(string $name)