12 include_once
'Services/Table/classes/class.ilTable2GUI.php';
27 $this->
setTitle($lng->txt(
'bookmarks'));
29 $this->
setRowTemplate(
'tpl.bookmark_administration_row.html',
'Services/PersonalDesktop');
31 $this->
addColumn($lng->txt(
'type'),
'',
'3%');
32 $this->
addColumn($lng->txt(
'title'),
'title',
'84%');
33 $this->
addColumn($lng->txt(
'actions'),
'',
'10%');
35 $hash = ($ilUser->prefs[
"screen_reader_optimization"])
43 $this->
addCommandButton(
'newFormBookmarkFolder', $lng->txt(
"bookmark_folder_new"));
58 include_once(
"./Services/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
60 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
61 $current_selection_list->setId(
"act_".$a_data[
'obj_id']);
64 $this->tpl->setVariable(
"VAL_ID", $a_data[
"obj_id"]);
72 if ($a_data[
"type"] !=
"parent")
74 $hash = ($ilUser->prefs[
"screen_reader_optimization"])
78 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $this->parent_obj->id);
79 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_data[
"obj_id"]);
80 $edit_link = ($a_data[
"type"] ==
"bmf")
81 ? $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmarkFolder", $hash)
82 : $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmark", $hash);
84 $ilCtrl->clearParameters($this->parent_obj);
85 $ilCtrl->setParameter($this->parent_obj,
"bm_id", $a_data[
'obj_id']);
86 $delete_link = $ilCtrl->getLinkTarget($this->parent_obj,
'delete', $hash);
87 $sendmail_link = $ilCtrl->getLinkTarget($this->parent_obj,
'sendmail', $hash);
88 $export_link = $ilCtrl->getLinkTarget($this->parent_obj,
'export', $hash);
92 $current_selection_list->addItem($this->lng->txt(
'edit'),
'', $edit_link);
95 $current_selection_list->addItem($this->lng->txt(
'delete'),
'', $delete_link);
98 $current_selection_list->addItem($this->lng->txt(
'export'),
'', $export_link);
101 $current_selection_list->addItem($this->lng->txt(
'bkm_sendmail'),
'', $sendmail_link);
103 $this->tpl->setVariable(
"COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
106 $img_type = ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent") ?
"cat" : $a_data[
"type"];
108 $this->tpl->setVariable(
"VAL_ICON", $val);
109 $this->tpl->setVariable(
"VAL_ICON_ALT", $lng->txt(
"icon").
" ".$lng->txt($a_data[
"type"]));
112 if ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent")
114 $this->tpl->setVariable(
"VAL_BMF_TITLE", $a_data[
"title"]);
115 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $a_data[
"obj_id"]);
116 $this->tpl->setVariable(
"VAL_BMF_TARGET", $ilCtrl->getLinkTarget($this->parent_obj));
121 $this->tpl->setVariable(
"VAL_BM_TITLE", $a_data[
"title"]);
122 $this->tpl->setVariable(
"VAL_BM_TARGET", htmlentities($a_data[
"target"]));
123 $this->tpl->setVariable(
"VAL_BM_DESCRIPTION", $a_data[
"description"]);
126 $ilCtrl->clearParameters($this->parent_obj);