19 declare(strict_types=1);
38 return $this->
renderEntity($component, $default_renderer);
45 $tpl = $this->
getTemplate(
'tpl.entity.html',
true,
true);
48 if (is_string($secondary_identifier)) {
49 $tpl->touchBlock(
'secondid_string');
51 $tpl->touchBlock(
'secondid_image');
53 $tpl->touchBlock(
'secondid_symbol');
54 } elseif ($secondary_identifier instanceof
Component\Image\
Link) {
55 $tpl->touchBlock(
'secondid_link');
56 } elseif ($secondary_identifier instanceof
Component\Image\
Shy) {
57 $tpl->touchBlock(
'secondid_shy');
60 $tpl->setVariable(
'SECONDARY_IDENTIFIER', is_string($secondary_identifier) ? $secondary_identifier : $this->
maybeRender($default_renderer, $secondary_identifier));
63 $primary_identifier = is_string($primary_identifier) ? $primary_identifier : $this->
maybeRender($default_renderer, $primary_identifier);
64 $tpl->setVariable(
'PRIMARY_IDENTIFIER', $primary_identifier);
74 $actions_dropdown = $this->
getUIFactory()->dropdown()->standard($actions);
75 $tpl->setVariable(
'ACTIONS', $default_renderer->render($actions_dropdown));
78 $tpl->setVariable(
'REACTIONS', $default_renderer->render($reactions));
81 $tpl->setVariable(
'PRIO_REACTIONS', $default_renderer->render($prio_reactions));
94 return $default_renderer->render($values);
getBlockingAvailabilityConditions()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
renderEntity(Entity $component, RendererInterface $default_renderer)
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
maybeRender(RendererInterface $default_renderer, Component\Component|null ... $values)
render(Component\Component $component, RendererInterface $default_renderer)
cannotHandleComponent(Component $component)
This method MUST be called by derived component renderers, if.
getUIFactory()
Get a UI factory.
getPrioritizedReactions()
Base class for all component renderers.