19declare(strict_types=1);
41 return $this->tpl->setCurrentBlock($name);
49 return $this->tpl->parseCurrentBlock();
57 return $this->tpl->touchBlock($name);
65 $this->tpl->setVariable($name, $value);
71 public function get(?
string $block =
null):
string
73 if ($block ===
null) {
74 $block =
"__global__";
76 return $this->tpl->get($block);
Wraps an ilTemplate to only provide smaller interface.
setVariable(string $name, $value)
@inheritdocs
setCurrentBlock(string $name)
@inheritdocs
__construct(private ilTemplate $tpl,)
parseCurrentBlock()
@inheritdocs
touchBlock(string $name)
@inheritdocs
special template class to simplify handling of ITX/PEAR
Interface to templating as it is used in the UI framework.