19declare(strict_types=1);
35 if ($component instanceof
Entity) {
36 return $this->
renderEntity($component, $default_renderer);
56 $tpl->
setVariable(
'WORKFLOW_ACTIONS', $default_renderer->render($button_components));
59 $actions_dropdown = $this->
getUIFactory()->dropdown()->standard($actions);
60 $tpl->
setVariable(
'MANAGING_ACTIONS', $default_renderer->render($actions_dropdown));
66 $tpl->
setVariable(
'PRIO_REACTIONS', $default_renderer->render($prio_reactions));
74 RendererInterface $default_renderer,
77 $primary_identifier = $component->getPrimaryIdentifier();
78 if (!is_string($primary_identifier)) {
79 $primary_identifier = $this->
maybeRender($default_renderer, $primary_identifier);
87 RendererInterface $default_renderer,
90 $secondary_identifier = $component->getSecondaryIdentifier();
91 if (is_string($secondary_identifier)) {
102 if (!is_string($secondary_identifier)) {
103 $secondary_identifier = $this->maybeRender($default_renderer, $secondary_identifier);
141 if ($values === []) {
145 return $default_renderer->render($values);
152 foreach ($workflow->getSteps() as $step) {
153 if (
null === $step->getAction() ||
160 $actions[] = $this->
getUIFactory()->button()->standard($step->getLabel(), $step->getAction());
A Link is the often used combination of a label and an URL.
getBlockingAvailabilityConditions()
getPrioritizedReactions()
renderSecondaryIdentifier(Entity $component, RendererInterface $default_renderer, Template $tpl)
renderPrimaryIdentifier(Entity $component, RendererInterface $default_renderer, Template $tpl)
maybeRender(RendererInterface $default_renderer, Component\Component|null ... $values)
renderBlockingConditions(Entity $component, RendererInterface $default_renderer, Template $tpl)
createUnfinishedWorkflowActions(Component\Listing\Workflow\Workflow $workflow)
renderPersonalStatus(Entity $component, RendererInterface $default_renderer, Template $tpl)
renderEntity(Entity $component, RendererInterface $default_renderer)
renderMainDetails(Entity $component, RendererInterface $default_renderer, Template $tpl)
renderDetails(Entity $component, RendererInterface $default_renderer, Template $tpl)
renderAvailability(Entity $component, RendererInterface $default_renderer, Template $tpl)
renderFeatures(Entity $component, RendererInterface $default_renderer, Template $tpl)
render(Component\Component $component, RendererInterface $default_renderer)
Base class for all component renderers.
cannotHandleComponent(Component $component)
This method MUST be called by derived component renderers, if.
createId()
Get a fresh unique id.
getUIFactory()
Get a UI factory.
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for.
setVariable(string $variable, $value='')
Sets the given variable to the given value.
touchBlock(string $block)
overwrites ITX::touchBlock.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
This describes a Workflow.
Interface to templating as it is used in the UI framework.
An entity that renders components to a string output.
readonly ilGlobalTemplateInterface $tpl