Public Member Functions | |
ilObjRecoveryFolderGUI ($a_data, $a_id, $a_call_by_reference) | |
Constructor public. | |
saveObject () | |
save object public | |
removeFromSystemObject () | |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method | |
showPossibleSubObjects () | |
show possible subobjects (pulldown menu) |
Definition at line 36 of file class.ilObjRecoveryFolderGUI.php.
ilObjRecoveryFolderGUI::ilObjRecoveryFolderGUI | ( | $ | a_data, | |
$ | a_id, | |||
$ | a_call_by_reference | |||
) |
Constructor public.
Definition at line 42 of file class.ilObjRecoveryFolderGUI.php.
References ilObjectGUI::ilObjectGUI().
{ $this->type = "recf"; $this->ilObjectGUI($a_data,$a_id,$a_call_by_reference); }
ilObjRecoveryFolderGUI::removeFromSystemObject | ( | ) |
remove objects from trash bin and all entries therefore every object needs a specific deleteObject() method
public
Reimplemented from ilObjectGUI.
Definition at line 74 of file class.ilObjRecoveryFolderGUI.php.
References $_GET, $_POST, $id, $rbacsystem, ilObjectGUI::getReturnLocation(), ilUtil::redirect(), ilObjectGUI::removeDeletedNodes(), and sendInfo().
{ global $rbacsystem; // AT LEAST ONE OBJECT HAS TO BE CHOSEN. if (!isset($_POST["id"])) { $this->ilias->raiseError($this->lng->txt("no_checkbox"),$this->ilias->error_obj->MESSAGE); } $this->object->notify("removeFromSystem", $_GET["ref_id"],$_GET["parent_non_rbac_id"],$_GET["ref_id"],$_POST["trash_id"]); // DELETE THEM foreach ($_POST["id"] as $id) { // GET COMPLETE NODE_DATA OF ALL SUBTREE NODES $node_data = $this->tree->getNodeData($id); $subtree_nodes = $this->tree->getSubTree($node_data); // remember already checked deleted node_ids $checked[] = $id; // dive in recursive manner in each already deleted subtrees and remove these objects too $this->removeDeletedNodes($id,$checked); foreach ($subtree_nodes as $node) { $node_obj =& $this->ilias->obj_factory->getInstanceByRefId($node["ref_id"]); // this is due to bug #1860 (even if this will not completely fix it) // and the fact, that media pool folders may find their way into // the recovery folder (what results in broken pools, if the are deleted) // Alex, 2006-07-21 if ($node_obj->getType() != "fold") { $node_obj->delete(); } } // FIRST DELETE ALL ENTRIES IN RBAC TREE $this->tree->deleteTree($node_data); } sendInfo($this->lng->txt("msg_removed"),true); ilUtil::redirect($this->getReturnLocation("removeFromSystem","adm_object.php?ref_id=".$_GET["ref_id"])); }
ilObjRecoveryFolderGUI::saveObject | ( | ) |
save object public
Reimplemented from ilObjectGUI.
Definition at line 52 of file class.ilObjRecoveryFolderGUI.php.
References $rbacadmin, exit, ilObjectGUI::getReturnLocation(), and sendInfo().
{ global $rbacadmin; // create and insert forum in objecttree $newObj = parent::saveObject(); // setup rolefolder & default local roles //$roles = $newObj->initDefaultRoles(); // ...finally assign role to creator of object //$rbacadmin->assignUser($roles[0], $newObj->getOwner(), "y"); // put here object specific stuff // always send a message sendInfo($this->lng->txt("object_added"),true); header("Location:".$this->getReturnLocation("save","adm_object.php?".$this->link_params)); exit(); }
ilObjRecoveryFolderGUI::showPossibleSubObjects | ( | ) |
show possible subobjects (pulldown menu)
public
Reimplemented from ilObjectGUI.
Definition at line 123 of file class.ilObjRecoveryFolderGUI.php.
{
$this->sub_objects = "";
}