30     protected string $id = 
"";
    36     protected string $type = self::TYPE_MEDIUM;
    48     public function setId(
string $a_val): void
    60         $this->heading = $a_val;
    69     public function setBody(
string $a_val): void
    84     public function setType(
string $a_val): void
    96         $this->buttons[] = $but;
   110         $tpl = 
new ilTemplate(
"tpl.modal.html", 
true, 
true, 
"components/ILIAS/UIComponent/Modal");
   114                 $tpl->setCurrentBlock(
"button");
   115                 $tpl->setVariable(
"BUTTON", $b->render());
   116                 $tpl->parseCurrentBlock();
   118             $tpl->setCurrentBlock(
"footer");
   119             $tpl->parseCurrentBlock();
   122         $tpl->setVariable(
"HEADING", $this->
getHeading());
   124         $tpl->setVariable(
"MOD_ID", $this->
getId());
   125         $tpl->setVariable(
"BODY", $this->
getBody());
   128             case self::TYPE_LARGE:
   129                 $tpl->setVariable(
"CLASS", 
"modal-lg");
   132             case self::TYPE_SMALL:
   133                 $tpl->setVariable(
"CLASS", 
"modal-sm");
   144         $tpl = $a_main_tpl ?? $DIC[
"tpl"];
   146         $tpl->addJavaScript(
"assets/js/LegacyModal.js");
 
setType(string $a_val)
Set type. 
 
static initJS(ilGlobalTemplateInterface $a_main_tpl=null)
 
addButton(ilButtonBase $but)
 
setHeading(string $a_val)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...