25require_once 
"./Services/Object/classes/class.ilObject.php";
 
   43    public function __construct($a_id = 0, $a_call_by_reference = 
true)
 
   54            $this->
setDescription($this->lng->txt(
"obj_" . $this->getType() . 
"_local_desc") . $this->getTitle() . $this->getDescription());
 
   55            $this->
setTitle($this->lng->txt(
"obj_" . $this->getType() . 
"_local"));
 
   66    public function delete()
 
   69        if (!parent::delete()) {
 
   81        foreach ($roles as $role_id) {
 
   82            $roleObj = &$this->
ilias->obj_factory->getInstanceByObjId($role_id);
 
   83            $roleObj->setParent($this->
getRefId());
 
  100    public function createRole($a_title, $a_desc, $a_import_id = 0)
 
  107        include_once(
"./Services/AccessControl/classes/class.ilObjRole.php");
 
  109        $roleObj->setTitle($a_title);
 
  110        $roleObj->setDescription($a_desc);
 
  112        if ($a_import_id != 
"") {
 
  114            $roleObj->setImportId($a_import_id);
 
  119        $rbacadmin->assignRoleToFolder($roleObj->getId(), $this->getRefId(), 
"y");
 
  139        if (count($local_roles) == 0) {
 
  143                $deleted_tree = 
new ilTree($tree_id, -(
int) $tree_id);
 
  144                $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);
 
  167        if ($row->tree < 0) {
 
An exception for terminatinating execution or to throw for unit testing.
createRole($a_title, $a_desc, $a_import_id=0)
creates a local role in current rolefolder (this object)
read()
read object data from db into object
isDeleted()
checks if role folder is in trash @access private
purge()
checks if rolefolder contains any roles.
__construct($a_id=0, $a_call_by_reference=true)
Constructor @access public.
Class ilObject Basic functions for all objects.
setTitle($a_title)
set object title
setDescription($a_desc)
set object description
getRefId()
get reference id @access public
getId()
get object id @access public
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
redirection script todo: (a better solution should control the processing via a xml file)