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 
'./classes/class.ilObjectGUI.php';
 
  127                 $object = 
new ilObjectGUI(array (), 0, 
false, 
false);
 
  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();