5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
40 public function __construct($a_parent_obj, $a_parent_cmd, $a_has_write_permission =
false)
44 $this->ctrl = $DIC->ctrl();
45 $this->lng = $DIC->language();
46 $this->access = $DIC->access();
49 $lng = $DIC->language();
50 $ilAccess = $DIC->access();
51 $lng = $DIC->language();
52 $this->has_write_permission = $a_has_write_permission;
54 $this->
setId(
"help_mods");
56 parent::__construct($a_parent_obj, $a_parent_cmd);
61 $this->
addColumn($this->lng->txt(
"title"));
62 $this->
addColumn($this->lng->txt(
"help_imported_on"));
63 $this->
addColumn($this->lng->txt(
"actions"));
66 $this->
setRowTemplate(
"tpl.help_module_row.html",
"Services/Help");
68 if ($this->has_write_permission) {
79 $this->
setData($this->parent_obj->object->getHelpModules());
91 $ilCtrl->setParameter($this->parent_obj,
"hm_id", $a_set[
"id"]);
92 if ($this->has_write_permission) {
93 if ($a_set[
"id"] ==
$ilSetting->get(
"help_module")) {
94 $this->tpl->setCurrentBlock(
"cmd");
95 $this->tpl->setVariable(
97 $ilCtrl->getLinkTarget($this->parent_obj,
"deactivateModule")
99 $this->tpl->setVariable(
"TXT_CMD",
$lng->txt(
"deactivate"));
100 $this->tpl->parseCurrentBlock();
102 $this->tpl->setCurrentBlock(
"cmd");
103 $this->tpl->setVariable(
105 $ilCtrl->getLinkTarget($this->parent_obj,
"activateModule")
107 $this->tpl->setVariable(
"TXT_CMD",
$lng->txt(
"activate"));
108 $this->tpl->parseCurrentBlock();
111 $ilCtrl->setParameter($this->parent_obj,
"hm_id",
"");
112 $this->tpl->setVariable(
"TITLE", $a_set[
"title"]);
113 $this->tpl->setVariable(
117 $this->tpl->setVariable(
"ID", $a_set[
"id"]);
fillRow($a_set)
Fill table row.
__construct($a_parent_obj, $a_parent_cmd, $a_has_write_permission=false)
Constructor.
getHelpModules()
Get help modules.
TableGUI class for help modules.
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false)
Format a date public.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
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.