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");
 
  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';
 
  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();
 
An exception for terminatinating execution or to throw for unit testing.
Handles Administration commands (cut, delete paste)
performDelete()
Perform delete.
__construct($a_container)
Constructor.
showLinkIntoMultipleObjectsTree()
Target selection.
showMoveIntoObjectTree()
Show target selection.
performPasteIntoMultipleObjects()
getContainer()
Get container object.
link()
Start linking object.
Confirmation screen class.
static getClassByType($a_obj_type)
Get class by type.
Class ilObjectGUI Basic methods of all Output classes.
static _lookupObjId($a_id)
static _lookupType($a_id, $a_reference=false)
lookup object type
static sendQuestion($a_info="", $a_keep=false)
Send Question to Screen.
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...