28 private \ILIAS\Repository\InternalGUIService
$gui;
37 $this->
lng = $DIC->language();
39 $this->
setType(
"glo_adv_col_sort");
41 $this->gui = $DIC->repository()->internal()->gui();
46 $this->value = $a_value;
73 $up = $this->gui->symbol()->glyph(
"up")->render();
74 $down = $this->gui->symbol()->glyph(
"down")->render();
76 $tpl =
new ilTemplate(
"tpl.adv_col_sort_input.html",
true,
true,
"components/ILIAS/Glossary");
78 foreach ($this->
getValue() as $k => $v) {
79 $tpl->setCurrentBlock(
"item");
80 $tpl->setVariable(
"TEXT", $v[
"text"]);
81 $tpl->setVariable(
"ID", $this->
getFieldId() .
"~" . $k);
82 $tpl->setVariable(
"DOWN", $down);
83 $tpl->setVariable(
"TXT_DOWN",
$lng->
txt(
"down"));
84 $tpl->setVariable(
"UP", $up);
85 $tpl->setVariable(
"TXT_UP",
$lng->
txt(
"up"));
86 $tpl->setVariable(
'NAME', $this->
getPostVar() .
"[" . $k .
"][id]");
87 $tpl->setVariable(
'TNAME', $this->
getPostVar() .
"[" . $k .
"][text]");
90 $tpl->parseCurrentBlock();
parseCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
static stripSlashesRecursive($a_data, bool $a_strip_html=true, string $a_allow="")
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...
setVariable($variable, $value='')
Sets a variable value.
setCurrentBlock(string $part=ilGlobalTemplateInterface::DEFAULT_BLOCK)
__construct(Container $dic, ilPlugin $plugin)