3 declare(strict_types=1);
    35         $tpl_card = $this->
getTemplate(
"tpl.deck_card.html", 
true, 
true);
    36         $tpl_row = $this->
getTemplate(
"tpl.deck_row.html", 
true, 
true);
    38         foreach ($component->getCards() as $card) {
    39             $tpl_card->setCurrentBlock(
"card");
    40             $tpl_card->setVariable(
"CARD", $default_renderer->render($card));
    45             $tpl_card->parseCurrentBlock();
    48         $this->
parseRow($tpl_row, $tpl_card->get());
    50         return $tpl_row->get();
 This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
setCurrentBlock(string $name)
Set the block to work on. 
 
getComponentInterfaceName()
 
setVariable(string $name, $value)
Set a variable in the current block. 
 
render(Component\Component $component, RendererInterface $default_renderer)
 
getTemplate(string $name, bool $purge_unfilled_vars, bool $purge_unused_blocks)
Get template of component this renderer is made for. 
 
parseCurrentBlock()
Parse the block that is currently worked on. 
 
const SIZE_XS
Different sizes of the card. 
 
parseRow(Template $tpl_row, string $content)
 
Base class for all component renderers.