72        $this->tpl = 
$DIC[
"tpl"];
 
   74        $this->
error = $DIC[
"ilErr"];
 
   75        $this->tree = 
$DIC->repositoryTree();
 
   76        $this->obj_definition = 
$DIC[
"objDefinition"];
 
   80        $this->container = $a_container;
 
   96    public function delete()
 
  102        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  104        $to_delete = array();
 
  105        if ((
int) 
$_GET[
'item_ref_id']) {
 
  107                (
int) 
$_GET[
'item_ref_id']
 
  112            $to_delete = 
$_POST[
'id'];
 
  116            $ilErr->raiseError($this->lng->txt(
'no_checkbox'), 
$ilErr->MESSAGE);
 
  119        include_once(
'./Services/Utilities/classes/class.ilConfirmationGUI.php');
 
  121        $confirm->setFormAction($this->ctrl->getFormActionByClass(get_class($this->
getContainer()), 
'cancel'));
 
  122        $confirm->setHeaderText(
'');
 
  123        $confirm->setCancel($this->lng->txt(
'cancel'), 
'cancelDelete');
 
  124        $confirm->setConfirm($this->lng->txt(
'delete'), 
'performDelete');
 
  126        foreach ($to_delete as $delete) {
 
  138        $msg = $this->lng->txt(
"info_delete_sure");
 
  141            $msg .= 
"<br/>" . $this->lng->txt(
"info_delete_warning_no_trash");
 
  145        $tpl->setContent($confirm->getHTML());
 
  153        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  155        include_once 
'./Services/Object/classes/class.ilObjectGUI.php';
 
  157        $object = 
new ilObjectGUI(array(), 0, 
false, 
false);
 
  158        $object->confirmedDeleteObject();
 
  169        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  173        include_once 
'./Services/Container/classes/class.ilContainerGUI.php';
 
  187        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  193        $class_name = 
"ilObj" . $objDefinition->getClassName(
$type) . 
'GUI';
 
  196        include_once(
$location . 
"/class." . $class_name . 
".php");
 
  197        $container = 
new $class_name(array(), (
int) 
$_GET[
'ref_id'], 
true, 
false);
 
  210        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  216        $class_name = 
"ilObj" . $objDefinition->getClassName(
$type) . 
'GUI';
 
  219        include_once(
$location . 
"/class." . $class_name . 
".php");
 
  220        $container = 
new $class_name(array(), (
int) 
$_GET[
'ref_id'], 
true, 
false);
 
  221        $container->showLinkIntoMultipleObjectsTreeObject();
 
  232        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  236        include_once 
'./Services/Container/classes/class.ilContainerGUI.php';
 
  249        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  256        $class_name = 
"ilObj" . $objDefinition->getClassName(
$type) . 
'GUI';
 
  259        include_once(
$location . 
"/class." . $class_name . 
".php");
 
  260        $container = 
new $class_name(array(), (
int) 
$_GET[
'item_ref_id'], 
true, 
false);
 
  269        $this->ctrl->setReturnByClass(get_class($this->
getContainer()), 
'');
 
  275        $class_name = 
"ilObj" . $objDefinition->getClassName(
$type) . 
'GUI';
 
  278        include_once(
$location . 
"/class." . $class_name . 
".php");
 
  279        $container = 
new $class_name(array(), (
int) 
$_GET[
'ref_id'], 
true, 
false);
 
  280        $container->performPasteIntoMultipleObjectsObject();
 
An exception for terminatinating execution or to throw for unit testing.
error($a_errmsg)
set error message @access public
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...