Go to the documentation of this file.00001 <?php
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00035 require_once "class.ilContainerGUI.php";
00036
00037 class ilObjRecoveryFolderGUI extends ilContainerGUI
00038 {
00043 function ilObjRecoveryFolderGUI($a_data,$a_id,$a_call_by_reference)
00044 {
00045 $this->type = "recf";
00046 $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference,false);
00047 }
00048
00053 function saveObject()
00054 {
00055 global $rbacadmin;
00056
00057
00058 $newObj = parent::saveObject();
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069 ilUtil::sendInfo($this->lng->txt("object_added"),true);
00070 exit();
00071 }
00072
00073 function removeFromSystemObject()
00074 {
00075 global $rbacsystem;
00076
00077
00078 if (!isset($_POST["id"]))
00079 {
00080 $this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE);
00081 }
00082
00083 $this->object->notify("removeFromSystem", $_GET["ref_id"],$_GET["parent_non_rbac_id"],$_GET["ref_id"],$_POST["trash_id"]);
00084
00085
00086 foreach ($_POST["id"] as $id)
00087 {
00088
00089 $node_data = $this->tree->getNodeData($id);
00090 $subtree_nodes = $this->tree->getSubTree($node_data);
00091
00092
00093 $checked[] = $id;
00094
00095
00096 $this->removeDeletedNodes($id,$checked);
00097
00098 foreach ($subtree_nodes as $node)
00099 {
00100 $node_obj =& $this->ilias->obj_factory->getInstanceByRefId($node["ref_id"]);
00101
00102
00103
00104
00105
00106 if ($node_obj->getType() != "fold")
00107 {
00108 $node_obj->delete();
00109 }
00110 }
00111
00112
00113 $this->tree->deleteTree($node_data);
00114 }
00115
00116 ilUtil::sendInfo($this->lng->txt("msg_removed"),true);
00117
00118 $this->ctrl->redirect($this, "view");
00119 }
00120
00121 function &executeCommand()
00122 {
00123 $next_class = $this->ctrl->getNextClass($this);
00124 $cmd = $this->ctrl->getCmd();
00125 $this->prepareOutput();
00126
00127 switch($next_class)
00128 {
00129 case 'ilpermissiongui':
00130 include_once("./classes/class.ilPermissionGUI.php");
00131 $perm_gui =& new ilPermissionGUI($this);
00132 $ret =& $this->ctrl->forwardCommand($perm_gui);
00133 break;
00134
00135 default:
00136 if(!$cmd)
00137 {
00138 $cmd = "view";
00139 }
00140 $cmd .= "Object";
00141 $this->$cmd();
00142
00143 break;
00144 }
00145 return true;
00146 }
00147
00148
00149 function showPossibleSubObjects()
00150 {
00151 $this->sub_objects = "";
00152 }
00153 }
00154 ?>