19declare(strict_types=1);
35 if (!$component instanceof
Glyph) {
41 if ($component->isHighlighted()) {
45 $label = $component->getLabel();
73 foreach ($component->getCounters() as $counter) {
74 if ($largest_counter < $counter->getNumber()) {
75 $largest_counter = $counter->getNumber();
77 $n =
"counter_" . $counter->getType();
83 if ($largest_counter) {
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
render(Component\Component $component, RendererInterface $default_renderer)
@inheritdocs
getInnerGlyphHTML(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.
bindJavaScript(JavaScriptBindable $component)
Bind the component to JavaScript.
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.
parseCurrentBlock(string $block_name=self::DEFAULT_BLOCK)
Parses the given block.
setCurrentBlock(string $part=self::DEFAULT_BLOCK)
Sets the template to the given block.
get(string $part=self::DEFAULT_BLOCK)
Renders the given block and returns the html string.
Interface to templating as it is used in the UI framework.
An entity that renders components to a string output.
readonly ilGlobalTemplateInterface $tpl