26 $ui_fac = new \ILIAS\UI\Implementation\Factory();
36 $buttons = $component->getButtons();
37 if (count($buttons) > 0) {
38 $tpl->setCurrentBlock(
"buttons");
39 $tpl->setVariable(
"BUTTONS", $default_renderer->render($buttons));
40 $tpl->parseCurrentBlock();
43 $tpl->setCurrentBlock(
"message_box");
45 $tpl->setVariable(
"MESSAGE_TEXT", $component->getMessageText());
46 $tpl->setVariable(
"ACC_TEXT", $this->
txt($component->getType() .
"_message"));
49 $links = $component->getLinks();
51 $unordered = $ui_fac->listing()->unordered(
55 $tpl->setVariable(
"LINK_LIST", $default_renderer->render($unordered));
58 $tpl->touchBlock($component->getType() .
"_class");
60 $tpl->parseCurrentBlock();
checkComponent(Component $component)
Check if a given component fits this renderer and throw if that is not the case. ...
getComponentInterfaceName()
txt($id)
Get a text from the language file.
render(Component $component, Renderer $default_renderer)
Render the component if possible and delegate additional rendering to the default_renderer.
getUIFactory()
Get a UI factory.
getTemplate($name, $purge_unfilled_vars, $purge_unused_blocks)
Get template of component this renderer is made for.
Base class for all component renderers.