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");
67 $alt = ($objDefinition->isPlugin(
$type))
69 : $lng->txt(
"icon").
" ".$lng->txt(
"obj_".
$type);
70 $cgui->addItem(
"id[]", $ref_id,
$title,
78 if (is_array($deps) && count($deps) > 0)
80 include_once(
"./Services/Repository/classes/class.ilRepDependenciesTableGUI.php");
82 $deps_html =
"<br/><br/>".$tab->getHTML();
85 $tpl->setContent($cgui->getHTML().$deps_html);
98 $objects = $tree->getSavedNodeData($a_ref_id);
100 if (count($objects) == 0)
105 include_once(
"./Services/Repository/classes/class.ilTrashTableGUI.php");
107 $ttab->setData($objects);
109 $tpl->setContent($ttab->getHTML());
122 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
131 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");
151 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
158 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");
162 if ($ilSetting->get(
'enable_trash'))
186 if (!is_array($a_ref_ids) || count($a_ref_ids) == 0)
193 include_once(
"./Services/Repository/classes/class.ilRepUtil.php");