36 $this->objDefinition =&$objDefinition;
39 $this->lng->loadLanguageModule(
"rbac");
43 $this->gui_obj = $a_gui_obj;
45 $this->roles =
array();
58 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
60 $form->setFormAction($this->ctrl->getFormAction($this,
"owner"));
61 $form->setTitle($this->lng->txt(
"info_owner_of_object"));
65 'ilRepositorySearchGUI'),
'doUserAutoComplete',
'',
true));
66 $login->setRequired(
true);
68 $login->setInfo($this->lng->txt(
"chown_warning"));
70 $form->addItem($login);
72 $form->addCommandButton(
"changeOwner", $this->lng->txt(
"change_owner"));
74 $this->tpl->setContent(
$form->getHTML());
79 global $rbacsystem,$ilObjDataCache;
88 if ($user_id != $this->gui_obj->object->getOwner()) {
89 $this->gui_obj->object->setOwner($user_id);
90 $this->gui_obj->object->updateOwner();
91 $ilObjDataCache->deleteCachedEntry($this->gui_obj->object->getId());
93 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
101 if (!$rbacsystem->checkAccess(
"edit_permission", $this->gui_obj->object->getRefId())) {
102 $this->ctrl->redirect($this->gui_obj);
106 $this->ctrl->redirect($this,
'owner');
115 $perm = ($a_cmd ==
'perm') ?
true :
false;
117 $info = ($a_cmd ==
'perminfo') ?
true :
false;
118 $owner = ($a_cmd ==
'owner') ?
true :
false;
119 $log = ($a_cmd ==
'log') ?
true :
false;
121 $ilTabs->addSubTabTarget(
122 "permission_settings",
123 $this->ctrl->getLinkTarget($this,
"perm"),
134 $ilTabs->addSubTabTarget(
136 $this->ctrl->getLinkTargetByClass(
array(get_class($this),
"ilobjectpermissionstatusgui"),
"perminfo"),
142 $ilTabs->addSubTabTarget(
144 $this->ctrl->getLinkTarget($this,
"owner"),
151 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
153 $ilTabs->addSubTabTarget(
155 $this->ctrl->getLinkTarget($this,
"log"),
166 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
168 $this->ctrl->redirect($this,
"perm");
173 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
175 $this->tpl->setContent(
$table->getHTML());
180 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
183 $table->writeFilterToSession();
189 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static _lookupLogin($a_user_id)
lookup login
setDataSource($href, $a_delimiter=null)
set datasource link for js autocomplete
const PEAR_ERROR_CALLBACK
static _lookupId($a_user_str)
Lookup id by login.
static getInstance()
Get instance.
const TAB_POSITION_PERMISSION_SETTINGS
if(isset($_POST['submit'])) $form
This class represents a text property in a property form.
Create styles array
The data for the language used.
static sendFailure($a_info="", $a_keep=false)
Send Failure Message to Screen.
static add($a_action, $a_ref_id, array $a_diff, $a_source_ref_id=false)
if(empty($password)) $table
Class ilPermissionGUI RBAC related output.