3 declare(strict_types=1);
52 return $this->
renderSub($component, $default_renderer);
57 return $this->
renderReport($component, $default_renderer);
63 foreach ($component->getContent() as $item) {
64 $content .= $default_renderer->render($item);
73 $view_controls = $component->getViewControls();
75 foreach ($view_controls as $view_control) {
76 $tpl->setCurrentBlock(
"view_controls");
77 $tpl->setVariable(
"VIEW_CONTROL", $default_renderer->render($view_control));
78 $tpl->parseCurrentBlock();
83 $actions = $component->getActions();
84 if ($actions !== null) {
85 $tpl->setVariable(
"ACTIONS", $default_renderer->render($actions));
88 $tpl->setVariable(
"TITLE", $component->getTitle());
97 $actions = $component->getActions();
99 if ($component->getTitle() !=
"" || $actions !== null) {
100 $tpl->setCurrentBlock(
"title");
103 if ($actions !== null) {
104 $tpl->setVariable(
"ACTIONS", $default_renderer->render($actions));
108 $tpl->setVariable(
"TITLE", $component->getTitle());
109 $tpl->parseCurrentBlock();
112 if ($component->getFurtherInformation()) {
113 $tpl->setCurrentBlock(
"with_further_information");
115 $tpl->setVariable(
"INFO", $default_renderer->render($component->getFurtherInformation()));
116 $tpl->parseCurrentBlock();
118 $tpl->setCurrentBlock(
"no_further_information");
120 $tpl->parseCurrentBlock();
129 $tpl->setVariable(
"TITLE", $component->getTitle());
139 return [Component\Panel\Panel::class];
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
renderSub(Component\Panel\Sub $component, RendererInterface $default_renderer)
renderReport(Component\Panel\Report $component, RendererInterface $default_renderer)
getContentAsString(Component\Component $component, RendererInterface $default_renderer)
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
renderStandard(Component\Panel\Standard $component, RendererInterface $default_renderer)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Base class for all component renderers.
getComponentInterfaceName()