4 include_once
'Services/Table/classes/class.ilTable2GUI.php';
41 $this->lng = $DIC->language();
42 $this->ctrl = $DIC->ctrl();
43 $this->help = $DIC[
"ilHelp"];
44 $this->
user = $DIC->user();
45 $lng = $DIC->language();
47 $ilHelp = $DIC[
"ilHelp"];
50 $ilHelp->setScreenIdComponent(
"bookm");
52 parent::__construct($a_ref);
56 $this->
setRowTemplate(
'tpl.bookmark_administration_row.html',
'Services/Bookmarks');
62 $hash = (
$ilUser->prefs[
"screen_reader_optimization"])
85 include_once(
"./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php");
87 $current_selection_list->setListTitle($this->lng->txt(
"actions"));
88 $current_selection_list->setId(
"act_" . $a_data[
'obj_id']);
91 $this->tpl->setVariable(
"VAL_ID", $a_data[
"obj_id"]);
99 if ($a_data[
"type"] !=
"parent") {
100 $hash = (
$ilUser->prefs[
"screen_reader_optimization"])
104 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $this->parent_obj->id);
105 $ilCtrl->setParameter($this->parent_obj,
"obj_id", $a_data[
"obj_id"]);
106 $edit_link = ($a_data[
"type"] ==
"bmf")
107 ?
$ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmarkFolder", $hash)
108 :
$ilCtrl->getLinkTarget($this->parent_obj,
"editFormBookmark", $hash);
110 $ilCtrl->clearParameters($this->parent_obj);
111 $ilCtrl->setParameter($this->parent_obj,
"bm_id", $a_data[
'obj_id']);
112 $delete_link =
$ilCtrl->getLinkTarget($this->parent_obj,
'delete', $hash);
113 $sendmail_link =
$ilCtrl->getLinkTarget($this->parent_obj,
'sendmail', $hash);
114 $export_link =
$ilCtrl->getLinkTarget($this->parent_obj,
'export', $hash);
118 $current_selection_list->addItem($this->lng->txt(
'edit'),
'', $edit_link);
122 $current_selection_list->addItem($this->lng->txt(
'delete'),
'', $delete_link);
126 $current_selection_list->addItem($this->lng->txt(
'export'),
'', $export_link);
129 if ($sendmail_link) {
130 $current_selection_list->addItem($this->lng->txt(
'bkm_sendmail'),
'', $sendmail_link);
133 $this->tpl->setVariable(
"COMMAND_SELECTION_LIST", $current_selection_list->getHTML());
136 $img_type = ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent") ?
"bmf" : $a_data[
"type"];
138 $this->tpl->setVariable(
"VAL_ICON", $val);
139 $this->tpl->setVariable(
"VAL_ICON_ALT",
$lng->txt(
"icon") .
" " .
$lng->txt($a_data[
"type"]));
142 if ($a_data[
"type"] ==
"bmf" || $a_data[
"type"] ==
"parent") {
143 $this->tpl->setVariable(
"VAL_BMF_TITLE", $a_data[
"title"]);
144 $ilCtrl->setParameter($this->parent_obj,
"bmf_id", $a_data[
"obj_id"]);
145 $this->tpl->setVariable(
"VAL_BMF_TARGET",
$ilCtrl->getLinkTarget($this->parent_obj));
148 $this->tpl->setVariable(
"VAL_BM_TITLE", $a_data[
"title"]);
150 $this->tpl->setVariable(
"VAL_BM_REL",
'noopener');
151 $this->tpl->setVariable(
"VAL_BM_DESCRIPTION", $a_data[
"description"]);
154 $ilCtrl->clearParameters($this->parent_obj);
getParentObject()
Get parent object.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
addMultiCommand($a_cmd, $a_text)
Add Command button.
Table GUI for Bookmark management.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
User interface class for advanced drop-down selection lists.
static secureUrl($url)
Prepare secure href attribute.
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.
setTopAnchor($a_val)
Set top anchor.