3 declare(strict_types=1);
38 if ($component->getNumber() === 0) {
39 $tpl->touchBlock(
"hidden_" . $component->getType());
41 $tpl->setCurrentBlock($component->getType());
42 $tpl->setVariable(
"NUMBER", $component->getNumber());
43 $tpl->parseCurrentBlock();
52 parent::registerResources($registry);
53 $registry->
register(
'./src/UI/templates/js/Counter/dist/counter.js');
Registry for resources required by rendered output like Javascript or CSS.
render(Component\Component $component, RendererInterface $default_renderer)
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getComponentInterfaceName()
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
register(string $name)
Add a dependency.
registerResources(ResourceRegistry $registry)
Announce resources this renderer requires.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Base class for all component renderers.