ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
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 ?>
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
__construct($a_parent_obj, $a_parent_cmd, $a_comp)
Constructor.
setId($a_val)
Set id.
global $ilCtrl
Definition: ilias.php:18
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static getAllTooltips($a_comp="", $a_module_id=0)
Get all tooltips.
Class ilTable2GUI.
addMultiCommand($a_cmd, $a_text)
Add Command button.
fillRow($a_set)
Fill table row.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
global $lng
Definition: privfeed.php:40
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.