42 $this->
lng = $DIC->language();
44 $this->main_tpl = $DIC->ui()->mainTemplate();
47 public function setId(
string $a_val): void
59 $this->link_title = $a_val;
69 $this->items = $a_val;
78 string $a_selectionheaderclass
80 $this->selectionheaderclass = $a_selectionheaderclass;
90 $this->form_cmd = $a_val;
100 $this->field_var = $a_val;
110 $this->hidden_var = $a_val;
118 public function getHTML(
bool $pull_right =
true): string
125 "tpl.checkbox_list_overlay.html",
128 "Services/UIComponent/CheckboxListOverlay",
134 $this->main_tpl->addOnLoadCode(
"$('#chkbxlstovl_" . $this->
getId() .
"').click(function(event){ 135 event.stopPropagation(); 138 $tpl->touchBlock(
"top_img");
143 $tpl->parseCurrentBlock();
147 foreach ($items as $k => $v) {
148 $tpl->setCurrentBlock(
"list_entry");
150 $tpl->setVariable(
"VAL_ENTRY", $k);
151 $tpl->setVariable(
"TXT_ENTRY", $v[
"txt"]);
152 $tpl->setVariable(
"IDX_ENTRY", ++$cnt);
153 if ($v[
"selected"]) {
154 $tpl->setVariable(
"CHECKED",
"checked='checked'");
156 $tpl->parseCurrentBlock();
160 $tpl->touchBlock(
"pr");
166 $tpl->setVariable(
"VAL_SUBMIT", $lng->
txt(
"refresh"));
string $selectionheaderclass
ilGlobalTemplateInterface $main_tpl
getSelectionHeaderClass()
setFieldVar(string $a_val)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
setSelectionHeaderClass(string $a_selectionheaderclass)
setLinkTitle(string $a_val)
getHTML(bool $pull_right=true)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(string $a_id="")
setFormCmd(string $a_val)
if($DIC->http() ->request() ->getMethod()=="GET" &&isset($DIC->http() ->request() ->getQueryParams()['tex'])) $tpl
setHiddenVar(string $a_val)