3 declare(strict_types=1);
46 $buttons = $component->getButtons();
47 if (count($buttons) > 0) {
48 $tpl->setCurrentBlock(
"buttons");
49 $tpl->setVariable(
"BUTTONS", $default_renderer->render($buttons));
50 $tpl->parseCurrentBlock();
53 $tpl->setCurrentBlock(
"message_box");
55 $tpl->setVariable(
"MESSAGE_TEXT", $component->getMessageText());
56 $tpl->setVariable(
"ACC_TEXT", $this->
txt($component->getType() .
"_message"));
58 $tpl->setVariable(
"ROLE",
"alert");
60 $tpl->setVariable(
"ROLE",
"status");
64 $links = $component->getLinks();
65 if (count($links) > 0) {
66 $unordered = $ui_fac->listing()->unordered(
70 $tpl->setVariable(
"LINK_LIST", $default_renderer->render($unordered));
73 $tpl->touchBlock($component->getType() .
"_class");
75 $tpl->parseCurrentBlock();
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...
txt(string $id)
Get a text from the language file.
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...
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
getUIFactory()
Get a UI factory.
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
Base class for all component renderers.