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
00034 require_once "class.ilObjectGUI.php";
00035
00036 class ilObjRecoveryFolderGUI extends ilObjectGUI
00037 {
00042 function ilObjRecoveryFolderGUI($a_data,$a_id,$a_call_by_reference)
00043 {
00044 $this->type = "recf";
00045 $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference);
00046 }
00047
00052 function saveObject()
00053 {
00054 global $rbacadmin;
00055
00056
00057 $newObj = parent::saveObject();
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068 sendInfo($this->lng->txt("object_added"),true);
00069
00070 header("Location:".$this->getReturnLocation("save","adm_object.php?".$this->link_params));
00071 exit();
00072 }
00073
00074 function removeFromSystemObject()
00075 {
00076 global $rbacsystem;
00077
00078
00079 if (!isset($_POST["id"]))
00080 {
00081 $this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE);
00082 }
00083
00084 $this->object->notify("removeFromSystem", $_GET["ref_id"],$_GET["parent_non_rbac_id"],$_GET["ref_id"],$_POST["trash_id"]);
00085
00086
00087 foreach ($_POST["id"] as $id)
00088 {
00089
00090 $node_data = $this->tree->getNodeData($id);
00091 $subtree_nodes = $this->tree->getSubTree($node_data);
00092
00093
00094 $checked[] = $id;
00095
00096
00097 $this->removeDeletedNodes($id,$checked);
00098
00099 foreach ($subtree_nodes as $node)
00100 {
00101 $node_obj =& $this->ilias->obj_factory->getInstanceByRefId($node["ref_id"]);
00102
00103
00104
00105
00106
00107 if ($node_obj->getType() != "fold")
00108 {
00109 $node_obj->delete();
00110 }
00111 }
00112
00113
00114 $this->tree->deleteTree($node_data);
00115 }
00116
00117 sendInfo($this->lng->txt("msg_removed"),true);
00118
00119 ilUtil::redirect($this->getReturnLocation("removeFromSystem","adm_object.php?ref_id=".$_GET["ref_id"]));
00120
00121 }
00122
00123 function showPossibleSubObjects()
00124 {
00125 $this->sub_objects = "";
00126 }
00127 }
00128 ?>