19 declare(strict_types=1);
38 $this->
setType(
"section_header");
46 public function setType(
string $a_type): void
48 $this->type = $a_type;
60 $this->section_icon[
'file'] = $a_file;
61 $this->section_icon[
'alt'] = $a_alt;
66 return $this->section_icon ?: array();
69 public function setTitle(
string $a_title): void
71 $this->title = $a_title;
79 public function setInfo(
string $a_info): void
81 $this->
info = $a_info;
91 $this->parentform = $a_parentform;
101 $this->section_anchor = $value;
108 if (isset($section_icon[
'file']) && is_file($section_icon[
'file'])) {
110 $a_tpl->
setVariable(
"IMG_ICON", $section_icon[
'file']);
111 $a_tpl->
setVariable(
'IMG_ALT', $section_icon[
'alt']);
119 if (isset($this->section_anchor)) {
120 $a_tpl->
setVariable(
'LABEL', $this->section_anchor);
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
info()
description: > Example for rendering a info message box.
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)