ILIAS  release_8 Revision v8.24
class.ilHelpTooltipTableGUI.php
Go to the documentation of this file.
1<?php
2
25{
27
28 public function __construct(
29 object $a_parent_obj,
30 string $a_parent_cmd,
31 string $a_comp
32 ) {
33 global $DIC;
34
35 $this->ctrl = $DIC->ctrl();
36 $this->lng = $DIC->language();
37 $this->access = $DIC->access();
38 $ilCtrl = $DIC->ctrl();
39 $lng = $DIC->language();
40
41 $this->setId("lm_help_tooltips");
42
43 parent::__construct($a_parent_obj, $a_parent_cmd);
44
45 $this->setData(ilHelp::getAllTooltips($a_comp));
46
47 $this->setTitle($lng->txt("help_tooltips"));
48
49 $this->addColumn("", "", "1px", true);
50 $this->addColumn($this->lng->txt("help_tooltip_id"));
51 $this->addColumn($this->lng->txt("help_tt_text"));
52
53 $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
54 $this->setRowTemplate("tpl.help_tooltip.html", "Modules/LearningModule");
55 $this->setDefaultOrderField("tt_id");
56 $this->setDefaultOrderDirection("asc");
57
58 $this->addCommandButton("saveTooltips", $lng->txt("save"));
59 $this->addMultiCommand("deleteTooltips", $lng->txt("delete"));
60 }
61
62 protected function fillRow(array $a_set): void
63 {
64 $this->tpl->setVariable("ID", $a_set["id"]);
65 $this->tpl->setVariable("TEXT", ilLegacyFormElementsUtil::prepareFormOutput($a_set["text"]));
66 $this->tpl->setVariable("TT_ID", ilLegacyFormElementsUtil::prepareFormOutput($a_set["tt_id"]));
67 }
68}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(object $a_parent_obj, string $a_parent_cmd, string $a_comp)
fillRow(array $a_set)
Standard Version of Fill Row.
static getAllTooltips(string $a_comp="", int $a_module_id=0)
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...
static prepareFormOutput($a_str, bool $a_strip=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addCommandButton(string $a_cmd, string $a_text, string $a_onclick='', string $a_id="", string $a_class="")
addMultiCommand(string $a_cmd, string $a_text)
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setDefaultOrderField(string $a_defaultorderfield)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setId(string $a_val)
setDefaultOrderDirection(string $a_defaultorderdirection)
setData(array $a_data)
Set table data.
ilLanguage $lng
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc