38 $this->objDefinition =& $objDefinition;
41 $this->lng->loadLanguageModule(
"rbac");
45 $this->gui_obj = $a_gui_obj;
47 $this->roles = array();
60 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
62 $form->setFormAction($this->ctrl->getFormAction($this,
"owner"));
63 $form->setTitle($this->lng->txt(
"info_owner_of_object"));
66 $login->
setDataSource($this->ctrl->getLinkTargetByClass(array(get_class($this),
67 'ilRepositorySearchGUI'),
'doUserAutoComplete',
'',
true));
68 $login->setRequired(
true);
70 $login->setInfo($this->lng->txt(
"chown_warning"));
72 $form->addItem($login);
74 $form->addCommandButton(
"changeOwner", $this->lng->txt(
"change_owner"));
76 $this->tpl->setContent($form->getHTML());
81 global $rbacsystem,$ilObjDataCache;
91 if($user_id != $this->gui_obj->object->getOwner())
93 $this->gui_obj->object->setOwner($user_id);
94 $this->gui_obj->object->updateOwner();
95 $ilObjDataCache->deleteCachedEntry($this->gui_obj->object->getId());
97 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
106 if (!$rbacsystem->checkAccess(
"edit_permission",$this->gui_obj->object->getRefId()))
108 $this->ctrl->redirect($this->gui_obj);
112 $this->ctrl->redirect($this,
'owner');
122 $perm = ($a_cmd ==
'perm') ?
true :
false;
123 $info = ($a_cmd ==
'perminfo') ?
true :
false;
124 $owner = ($a_cmd ==
'owner') ?
true :
false;
125 $log = ($a_cmd ==
'log') ?
true :
false;
127 $ilTabs->addSubTabTarget(
"permission_settings", $this->ctrl->getLinkTarget($this,
"perm"),
130 #$ilTabs->addSubTabTarget("permission_settings", $this->ctrl->getLinkTarget($this, "perm2"),
131 # "", "", "", $perm);
133 $ilTabs->addSubTabTarget(
"info_status_info", $this->ctrl->getLinkTargetByClass(array(get_class($this),
"ilobjectpermissionstatusgui"),
"perminfo"),
135 $ilTabs->addSubTabTarget(
"owner", $this->ctrl->getLinkTarget($this,
"owner"),
138 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
141 $ilTabs->addSubTabTarget(
"log", $this->ctrl->getLinkTarget($this,
"log"),
148 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
151 $this->ctrl->redirect($this,
"perm");
156 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
157 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
158 $this->tpl->setContent($table->getHTML());
163 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
164 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
166 $table->writeFilterToSession();
172 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
173 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
175 $table->resetFilter();