19 declare(strict_types=1);
    47         $this->
ctrl = $DIC->ctrl();
    48         $this->
lng = $DIC->language();
    54         $this->callback = $decorator_callback;
    57         $this->
setTitle($translations->getTitleForLanguage($this->lng->getLangKey()));
    58         $this->
setBlockId(
"advmd_" . $this->record->getRecordId());
    60         $this->allow_moving = 
false;
    68         return self::$block_type;
    89         $this->values = $a_values;
    97         $this->
ctrl->getNextClass();
    98         $cmd = $this->
ctrl->getCmd(
"getHTML");
   107         $btpl = 
new ilTemplate(
"tpl.advmd_block.html", 
true, 
true, 
"Services/Object");
   115         $this->values->read();
   117         $defs = $this->values->getDefinitions();
   118         foreach ($this->values->getADTGroup()->getElements() as $element_id => $element) {
   121             $btpl->setCurrentBlock(
"item");
   122             $btpl->setVariable(
"CAPTION", $field_translations->getTitleForLanguage($element_id, $this->lng->getLangKey()));
   123             if ($element->isNull()) {
   128                 if (in_array($element->getType(), [
"MultiEnum", 
"Enum", 
"Text"])) {
   129                     $value->setDecoratorCallBack($this->callback);
   132                 $value = $value->getHTML();
   134             $btpl->setVariable(
"VALUE", $value);
   135             $btpl->parseCurrentBlock();
   138         $html = $btpl->get();
 
setBlockId(string $a_block_id="0")
 
setEnableNumInfo(bool $a_enablenuminfo)
 
static useRelativeDates()
 
static getInstanceByRecordId(int $record_id)
 
setTitle(string $a_title)
 
This class represents a block method of a block. 
 
static setUseRelativeDates(bool $a_status)
set use relative dates 
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
static getInstanceByRecordId(int $record_id)