3declare(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);
Wraps an ilTemplate to only provide smaller interface.
setVariable(string $name, $value)
@inheritdocs
addOnLoadCode(string $code)
@inheritdocs
setCurrentBlock(string $name)
@inheritdocs
__construct(ilGlobalTemplateInterface $global_tpl, ilTemplate $tpl)
parseCurrentBlock()
@inheritdocs
touchBlock(string $name)
@inheritdocs
ilGlobalTemplateInterface $global_tpl
special template class to simplify handling of ITX/PEAR
Interface to templating as it is used in the UI framework.
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...