22 $this->parent_gui = $a_parent_gui;
23 $this->parent_cmd = $a_parent_cmd;
34 if (!is_array($a_ids) || count($a_ids) == 0)
41 $a_ids = array_unique((array) $a_ids);
43 include_once(
"./Services/Utilities/classes/class.ilConfirmationGUI.php");
46 if(!$a_supress_message)
48 $msg = $lng->txt(
"info_delete_sure");
50 if (!$ilSetting->get(
'enable_trash'))
52 $msg .=
"<br/>".$lng->txt(
"info_delete_warning_no_trash");
55 $cgui->setHeaderText($msg);
57 $cgui->setFormAction($ilCtrl->getFormAction($this->parent_gui));
58 $cgui->setCancel($lng->txt(
"cancel"),
"cancelDelete");
59 $cgui->setConfirm($lng->txt(
"confirm"),
"confirmedDelete");
66 $alt = ($objDefinition->isPlugin(
$type))
68 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".
$type);
69 $cgui->addItem(
"id[]", $ref_id,
$title,
74 $tpl->setContent($cgui->getHTML());
87 $objects = $tree->getSavedNodeData($a_ref_id);
89 if (count($objects) == 0)
94 include_once(
"./Services/Repository/classes/class.ilTrashTableGUI.php");
96 $ttab->setData($objects);
98 $tpl->setContent($ttab->getHTML());
111 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
120 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");
140 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
147 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");
151 if ($ilSetting->get(
'enable_trash'))
175 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
182 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");