4 include_once
'Services/Table/classes/class.ilTable2GUI.php';
27 $ilHelp->setScreenIdComponent(
"bookm");
33 $this->
setRowTemplate(
'tpl.bookmark_administration_row.html',
'Services/Bookmarks');
35 $this->
addColumn($lng->txt(
'type'),
'',
'3%');
36 $this->
addColumn($lng->txt(
'title'),
'title',
'84%');
37 $this->
addColumn($lng->txt(
'actions'),
'',
'10%');
39 $hash = (
$ilUser->prefs[
"screen_reader_optimization"])
60 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
62 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
63 $current_selection_list->setId(
"act_".$a_data[
'obj_id']);
66 $this->tpl->setVariable(
"VAL_ID", $a_data[
"obj_id"]);
74 if ($a_data[
"type"] !=
"parent")
76 $hash = ($ilUser->prefs[
"screen_reader_optimization"])
80 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $this->parent_obj->id);
81 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_data[
"obj_id"]);
82 $edit_link = ($a_data[
"type"] ==
"bmf")
83 ? $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmarkFolder", $hash)
84 : $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmark", $hash);
86 $ilCtrl->clearParameters($this->parent_obj);
87 $ilCtrl->setParameter($this->parent_obj,
"bm_id", $a_data[
'obj_id']);
88 $delete_link = $ilCtrl->getLinkTarget($this->parent_obj,
'delete', $hash);
89 $sendmail_link = $ilCtrl->getLinkTarget($this->parent_obj,
'sendmail', $hash);
90 $export_link = $ilCtrl->getLinkTarget($this->parent_obj,
'export', $hash);
94 $current_selection_list->addItem($this->lng->txt(
'edit'),
'', $edit_link);
97 $current_selection_list->addItem($this->lng->txt(
'delete'),
'', $delete_link);
100 $current_selection_list->addItem($this->lng->txt(
'export'),
'', $export_link);
103 $current_selection_list->addItem($this->lng->txt(
'bkm_sendmail'),
'', $sendmail_link);
105 $this->tpl->setVariable(
"COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
108 $img_type = ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent") ?
"bmf" : $a_data[
"type"];
110 $this->tpl->setVariable(
"VAL_ICON", $val);
111 $this->tpl->setVariable(
"VAL_ICON_ALT", $lng->txt(
"icon").
" ".$lng->txt($a_data[
"type"]));
114 if ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent")
116 $this->tpl->setVariable(
"VAL_BMF_TITLE", $a_data[
"title"]);
117 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $a_data[
"obj_id"]);
118 $this->tpl->setVariable(
"VAL_BMF_TARGET", $ilCtrl->getLinkTarget($this->parent_obj));
123 $this->tpl->setVariable(
"VAL_BM_TITLE", $a_data[
"title"]);
124 $this->tpl->setVariable(
"VAL_BM_TARGET", htmlentities($a_data[
"target"]));
125 $this->tpl->setVariable(
"VAL_BM_DESCRIPTION", $a_data[
"description"]);
128 $ilCtrl->clearParameters($this->parent_obj);