ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
class.ilHelpTooltipTableGUI.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 include_once("./Services/Table/classes/class.ilTable2GUI.php");
5 include_once("./Services/Help/classes/class.ilHelpMapping.php");
6 
7 
17 {
18 
22  function __construct($a_parent_obj, $a_parent_cmd, $a_comp)
23  {
24  global $ilCtrl, $lng, $ilAccess, $lng;
25 
26  $this->setId("lm_help_tooltips");
27 
28  parent::__construct($a_parent_obj, $a_parent_cmd);
29 
30  include_once("./Services/Help/classes/class.ilHelp.php");
31  $this->setData(ilHelp::getAllTooltips($a_comp));
32 
33  $this->setTitle($lng->txt("help_tooltips"));
34 
35  $this->addColumn("", "", "1px", true);
36  $this->addColumn($this->lng->txt("help_tooltip_id"));
37  $this->addColumn($this->lng->txt("help_tt_text"));
38 
39  $this->setFormAction($ilCtrl->getFormAction($a_parent_obj));
40  $this->setRowTemplate("tpl.help_tooltip.html", "Modules/LearningModule");
41  $this->setDefaultOrderField("tt_id");
42  $this->setDefaultOrderDirection("asc");
43 
44  $this->addCommandButton("saveTooltips", $lng->txt("save"));
45  $this->addMultiCommand("deleteTooltips", $lng->txt("delete"));
46  }
47 
51  protected function fillRow($a_set)
52  {
53  global $lng;
54 
55  $this->tpl->setVariable("ID", $a_set["id"]);
56  $this->tpl->setVariable("TEXT", ilUtil::prepareFormOutput($a_set["text"]));
57  $this->tpl->setVariable("TT_ID", ilUtil::prepareFormOutput($a_set["tt_id"]));
58 
59  }
60 
61 }
62 
63 ?>