47 $this->container = $a_container;
63 public function delete()
67 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
69 $to_delete =
array ();
70 if ((
int)
$_GET[
'item_ref_id'])
73 (
int) $_GET[
'item_ref_id']
84 $ilErr->raiseError($this->lng->txt(
'no_checkbox'),$ilErr->MESSAGE);
87 include_once (
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
89 $confirm->setFormAction($this->ctrl->getFormActionByClass(get_class($this->
getContainer()),
'cancel'));
90 $confirm->setHeaderText(
'');
91 $confirm->setCancel($this->lng->txt(
'cancel'),
'cancelDelete');
92 $confirm->setConfirm($this->lng->txt(
'delete'),
'performDelete');
94 foreach ($to_delete as $delete)
107 $msg = $this->lng->txt(
"info_delete_sure");
109 if(!$ilSetting->get(
'enable_trash'))
111 $msg .=
"<br/>".$this->lng->txt(
"info_delete_warning_no_trash");
115 $tpl->setContent($confirm->getHTML());
123 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
125 include_once
'./Services/Object/classes/class.ilObjectGUI.php';
128 $object->confirmedDeleteObject();
139 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
141 $_GET[
'ref_id'] = $tree->getParentId((
int)
$_GET[
'item_ref_id']);
143 include_once
'./Services/Container/classes/class.ilContainerGUI.php';
155 global $objDefinition;
157 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
162 $location = $objDefinition->getLocation($type);
163 $class_name =
"ilObj" . $objDefinition->getClassName($type) .
'GUI';
166 include_once (
$location .
"/class." . $class_name .
".php");
167 $container =
new $class_name (
array (), (
int) $_GET[
'ref_id'],
true,
false);
179 global $objDefinition;
181 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
186 $location = $objDefinition->getLocation($type);
187 $class_name =
"ilObj" . $objDefinition->getClassName($type) .
'GUI';
190 include_once (
$location .
"/class." . $class_name .
".php");
191 $container =
new $class_name (
array (), (
int) $_GET[
'ref_id'],
true,
false);
192 $container->showLinkIntoMultipleObjectsTreeObject();
203 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
205 $_GET[
'ref_id'] = $tree->getParentId((
int)
$_GET[
'item_ref_id']);
207 include_once
'./Services/Container/classes/class.ilContainerGUI.php';
218 global $objDefinition;
220 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
226 $location = $objDefinition->getLocation($type);
227 $class_name =
"ilObj" . $objDefinition->getClassName($type) .
'GUI';
230 include_once (
$location .
"/class." . $class_name .
".php");
231 $container =
new $class_name (
array (), (
int) $_GET[
'item_ref_id'],
true,
false);
238 global $objDefinition;
240 $this->ctrl->setReturnByClass(get_class($this->
getContainer()),
'');
245 $location = $objDefinition->getLocation($type);
246 $class_name =
"ilObj" . $objDefinition->getClassName($type) .
'GUI';
249 include_once (
$location .
"/class." . $class_name .
".php");
250 $container =
new $class_name (
array (), (
int) $_GET[
'ref_id'],
true,
false);
251 $container->performPasteIntoMultipleObjectsObject();
static getClassByType($a_obj_type)
Get class by type.
performPasteIntoMultipleObjects()
Handles Administration commands (cut, delete paste)
static getTypeIconPath($a_type, $a_obj_id, $a_size='small')
Get type icon path path Return image path for icon_xxx.pngs Or (if enabled) path to custom icon Depre...
__construct($a_container)
Constructor.
Class ilObjectGUI Basic methods of all Output classes.
static _lookupObjId($a_id)
showLinkIntoMultipleObjectsTree()
Target selection.
showMoveIntoObjectTree()
Show target selection.
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
Create styles array
The data for the language used.
static _lookupType($a_id, $a_reference=false)
lookup object type
link()
Start linking object.
getContainer()
Get container object.
performDelete()
Perform delete.
Confirmation screen class.