25 require_once 
"./Services/Object/classes/class.ilObject.php";
 
   46                 $this->
ilObject($a_id,$a_call_by_reference);
 
   49         function read($a_force_db = 
false)
 
   53                 if ($this->
getId() != ROLE_FOLDER_ID)
 
   55                         $this->
setDescription($this->lng->txt(
"obj_".$this->getType().
"_local_desc").$this->getTitle().$this->getDescription());
 
   56                         $this->
setTitle($this->lng->txt(
"obj_".$this->getType().
"_local"));
 
   71                 if (!parent::delete())
 
   79                 $roles = $rbacreview->getRolesOfRoleFolder($this->
getRefId());
 
   82                 foreach ($roles as $role_id)
 
   84                         $roleObj =& $this->ilias->obj_factory->getInstanceByObjId($role_id);
 
   85                         $roleObj->setParent($this->
getRefId());
 
  104                 global $rbacadmin, $rbacreview;
 
  106                 include_once (
"./Services/AccessControl/classes/class.ilObjRole.php");
 
  108                 $roleObj->setTitle($a_title);
 
  109                 $roleObj->setDescription($a_desc);
 
  111                 if ($a_import_id != 
"")
 
  114                         $roleObj->setImportId($a_import_id);
 
  119                 $rbacadmin->assignRoleToFolder($roleObj->getId(),$this->
getRefId(),
"y");
 
  131                 global $rbacreview, $rbacadmin, $tree;
 
  133                 $local_roles = $rbacreview->getRolesOfRoleFolder($this->
getRefId());
 
  135                 if (count($local_roles) == 0)
 
  137                         $rbacadmin->revokePermission($this->
getRefId());
 
  141                                 $deleted_tree = 
new ilTree ($tree_id,- (
int) $tree_id);
 
  142                                 $deleted_tree->deleteTree($deleted_tree->getNodeData($this->getRefId()));                               
 
  146                                 $tree->deleteTree($tree->getNodeData($this->getRefId()));
 
  164                 $q = 
"SELECT tree FROM tree WHERE child= ".$this->ilias->db->quote($this->
getRefId()).
" ";
 
  165                 $row = $this->ilias->db->getRow($q);