24 require_once
"./Services/Container/classes/class.ilContainerGUI.php";
45 $this->
ilObjectGUI($a_data,$a_id,$a_call_by_reference,
false);
77 if (!isset($_POST[
"id"]))
79 $this->ilias->raiseError($this->lng->txt(
"no_checkbox"),$this->ilias->error_obj->MESSAGE);
82 $this->
object->notify(
"removeFromSystem",
$_GET[
"ref_id"],
$_GET[
"parent_non_rbac_id"],
$_GET[
"ref_id"],$_POST[
"trash_id"]);
84 $affected_ids = array();
87 foreach ($_POST[
"id"] as $id)
90 $node_data = $this->tree->getNodeData($id);
91 $subtree_nodes = $this->tree->getSubTree($node_data);
99 foreach ($subtree_nodes as $node)
101 $node_obj =& $this->ilias->obj_factory->getInstanceByRefId($node[
"ref_id"]);
107 #if ($node_obj->getType() != "fold")
109 if($node_obj->getType() ==
'fold' and $this->
isMediaFolder($node_obj->getId()))
117 $this->tree->deleteTree($node_data);
122 $this->ctrl->redirect($this,
"view");
127 $next_class = $this->ctrl->getNextClass($this);
128 $cmd = $this->ctrl->getCmd();
133 case 'ilpermissiongui':
134 include_once(
"./classes/class.ilPermissionGUI.php");
136 $ret =& $this->ctrl->forwardCommand($perm_gui);
155 $this->sub_objects =
"";
165 "cut" => array(
"name" =>
"cut",
"lng" =>
"cut"),
166 "clear" => array(
"name" =>
"clear",
"lng" =>
"clear"),
167 "removeFromSystem" => array(
"name" =>
"removeFromSystem",
"lng" =>
"btn_remove_system")
175 if(!is_array($this->media_pool_ids))
177 $this->media_pool_ids = array();
178 $query =
"SELECT child FROM mep_tree ";
179 $res = $ilDB->query($query);
182 $this->media_pool_ids[] = $row->child;
186 return in_array($a_obj_id,$this->media_pool_ids) ?
true :
false;