3declare(strict_types=1);
42 return $this->
renderBulky($component, $default_renderer);
44 throw new LogicException(
"Cannot render: " . get_class($component));
52 $action = $component->getAction();
53 $label = $component->getLabel();
54 if ($component->getOpenInNewViewport()) {
55 $tpl->touchBlock(
"open_in_new_viewport");
57 $tpl->setVariable(
"LABEL", $label);
58 $tpl->setVariable(
"HREF", $action);
65 $tpl_name =
"tpl.standard.html";
66 $tpl = $this->setStandardVars($tpl_name, $component);
72 RendererInterface $default_renderer
74 $tpl_name =
"tpl.bulky.html";
75 $tpl = $this->setStandardVars($tpl_name, $component);
76 $renderer = $default_renderer->withAdditionalContext($component);
77 $tpl->setVariable(
"SYMBOL", $renderer->render($component->getSymbol()));
78 $id = $this->bindJavaScript($component);
81 $aria_role = $component->getAriaRole();
82 if ($aria_role !=
null) {
83 $tpl->setCurrentBlock(
"with_aria_role");
84 $tpl->setVariable(
"ARIA_ROLE", $aria_role);
85 $tpl->parseCurrentBlock();
97 Component\Link\Standard::class,
98 Component\Link\Bulky::class
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
This implements commonalities between Links.
renderBulky(Component\Link\Bulky $component, RendererInterface $default_renderer)
setStandardVars(string $tpl_name, Component\Link\Link $component)
renderStandard(Component\Link\Standard $component)
getComponentInterfaceName()
Get the name of the component-interface this renderer is supposed to render.ATTENTION: Fully qualifie...
render(Component\Component $component, RendererInterface $default_renderer)
Base class for all component renderers.
checkComponent(Component $component)
Check if a given component fits this renderer and throw \LogicError if that is not the case.
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
Interface to templating as it is used in the UI framework.
An entity that renders components to a string output.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
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...