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"])
47 $this->
addCommandButton(
'newFormBookmarkFolder', $lng->txt(
"bookmark_folder_new"));
63 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
65 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
66 $current_selection_list->setId(
"act_".$a_data[
'obj_id']);
69 $this->tpl->setVariable(
"VAL_ID", $a_data[
"obj_id"]);
77 if ($a_data[
"type"] !=
"parent")
79 $hash = ($ilUser->prefs[
"screen_reader_optimization"])
83 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $this->parent_obj->id);
84 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_data[
"obj_id"]);
85 $edit_link = ($a_data[
"type"] ==
"bmf")
86 ? $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmarkFolder", $hash)
87 : $ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmark", $hash);
89 $ilCtrl->clearParameters($this->parent_obj);
90 $ilCtrl->setParameter($this->parent_obj,
"bm_id", $a_data[
'obj_id']);
91 $delete_link = $ilCtrl->getLinkTarget($this->parent_obj,
'delete', $hash);
92 $sendmail_link = $ilCtrl->getLinkTarget($this->parent_obj,
'sendmail', $hash);
93 $export_link = $ilCtrl->getLinkTarget($this->parent_obj,
'export', $hash);
97 $current_selection_list->addItem($this->lng->txt(
'edit'),
'', $edit_link);
100 $current_selection_list->addItem($this->lng->txt(
'delete'),
'', $delete_link);
103 $current_selection_list->addItem($this->lng->txt(
'export'),
'', $export_link);
106 $current_selection_list->addItem($this->lng->txt(
'bkm_sendmail'),
'', $sendmail_link);
108 $this->tpl->setVariable(
"COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
111 $img_type = ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent") ?
"bmf" : $a_data[
"type"];
113 $this->tpl->setVariable(
"VAL_ICON", $val);
114 $this->tpl->setVariable(
"VAL_ICON_ALT", $lng->txt(
"icon").
" ".$lng->txt($a_data[
"type"]));
117 if ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent")
119 $this->tpl->setVariable(
"VAL_BMF_TITLE", $a_data[
"title"]);
120 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $a_data[
"obj_id"]);
121 $this->tpl->setVariable(
"VAL_BMF_TARGET", $ilCtrl->getLinkTarget($this->parent_obj));
126 $this->tpl->setVariable(
"VAL_BM_TITLE", $a_data[
"title"]);
127 $this->tpl->setVariable(
"VAL_BM_TARGET", htmlentities($a_data[
"target"]));
128 $this->tpl->setVariable(
"VAL_BM_DESCRIPTION", $a_data[
"description"]);
131 $ilCtrl->clearParameters($this->parent_obj);