33 return $this->tpl->setCurrentBlock(
$name);
41 return $this->tpl->parseCurrentBlock();
49 return $this->tpl->touchBlock(
$name);
57 $this->tpl->setVariable(
$name, $value);
63 public function get($block =
null)
65 if ($block ===
null) {
66 $block =
"__global__";
68 return $this->tpl->get($block);
76 $this->global_tpl->addOnLoadCode($code);
An exception for terminatinating execution or to throw for unit testing.
Wraps an ilTemplate to only provide smaller interface.
addOnLoadCode($code)
@inheritdocs
__construct(\ilGlobalTemplateInterface $global_tpl, \ilTemplate $tpl)
setVariable($name, $value)
@inheritdocs
touchBlock($name)
@inheritdocs
parseCurrentBlock()
@inheritdocs
setCurrentBlock($name)
@inheritdocs
special template class to simplify handling of ITX/PEAR
Interface to templating as it is used in the UI framework.