5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
26 $this->lmme = $a_lmme;
27 $entries = $this->lmme->getMenuEntries();
30 $this->
setTitle($lng->txt(
"cont_custom_menu_entries"));
34 $this->
addColumn($this->lng->txt(
"link"));
35 $this->
addColumn($this->lng->txt(
"active"));
36 $this->
addColumn($this->lng->txt(
"actions"));
39 $this->
setRowTemplate(
"tpl.lm_menu_entry_row.html",
"Modules/LearningModule");
52 $ilCtrl->setParameter($this->parent_obj,
"menu_entry", $entry[
"id"]);
54 $this->tpl->setCurrentBlock(
"cmd");
55 $this->tpl->setVariable(
"HREF_CMD", $ilCtrl->getLinkTarget($this->parent_obj,
"editMenuEntry"));
56 $this->tpl->setVariable(
"CMD", $this->lng->txt(
"edit"));
57 $this->tpl->parseCurrentBlock();
59 $this->tpl->setCurrentBlock(
"cmd");
60 $this->tpl->setVariable(
"HREF_CMD", $ilCtrl->getLinkTarget($this->parent_obj,
"deleteMenuEntry"));
61 $this->tpl->setVariable(
"CMD", $this->lng->txt(
"delete"));
62 $this->tpl->parseCurrentBlock();
64 $ilCtrl->setParameter($this,
"menu_entry",
"");
66 $this->tpl->setVariable(
"LINK_ID", $entry[
"id"]);
68 if ($entry[
"type"] ==
"intern")
70 $entry[
"link"] = ILIAS_HTTP_PATH.
"/goto.php?target=".$entry[
"link"];
74 if (!strstr($entry[
"link"],
'://') && !strstr($entry[
"link"],
'mailto:'))
76 $entry[
"link"] =
"http://".$entry[
"link"];
79 $this->tpl->setVariable(
"HREF_LINK", $entry[
"link"]);
80 $this->tpl->setVariable(
"LINK", $entry[
"title"]);
84 $this->tpl->setVariable(
"ACTIVE_CHECK",
"checked=\"checked\"");