29 $ilias = $DIC[
'ilias'];
30 $objDefinition = $DIC[
'objDefinition'];
44 $this->objDefinition = &$objDefinition;
47 $this->lng->loadLanguageModule(
"rbac");
51 $this->gui_obj = $a_gui_obj;
53 $this->roles = array();
66 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
68 $form->setFormAction($this->ctrl->getFormAction($this,
"owner"));
69 $form->setTitle($this->lng->txt(
"info_owner_of_object"));
72 $login->setDataSource($this->ctrl->getLinkTargetByClass(array(get_class($this),
73 'ilRepositorySearchGUI'),
'doUserAutoComplete',
'',
true));
76 $login->setInfo($this->lng->txt(
"chown_warning"));
80 $form->addCommandButton(
"changeOwner", $this->lng->txt(
"change_owner"));
82 $this->tpl->setContent(
$form->getHTML());
89 $rbacsystem = $DIC[
'rbacsystem'];
90 $ilObjDataCache = $DIC[
'ilObjDataCache'];
99 if ($user_id != $this->gui_obj->object->getOwner()) {
100 $this->gui_obj->object->setOwner($user_id);
101 $this->gui_obj->object->updateOwner();
102 $ilObjDataCache->deleteCachedEntry($this->gui_obj->object->getId());
104 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
110 ilUtil::sendSuccess($this->lng->txt(
'owner_updated'),
true);
112 if (!$rbacsystem->checkAccess(
"edit_permission", $this->gui_obj->object->getRefId())) {
113 $this->ctrl->redirect($this->gui_obj);
117 $this->ctrl->redirect($this,
'owner');
126 $ilTabs = $DIC[
'ilTabs'];
128 $perm = ($a_cmd ==
'perm') ?
true :
false;
130 $info = ($a_cmd ==
'perminfo') ?
true :
false;
131 $owner = ($a_cmd ==
'owner') ?
true :
false;
132 $log = ($a_cmd ==
'log') ?
true :
false;
134 $ilTabs->addSubTabTarget(
135 "permission_settings",
136 $this->ctrl->getLinkTarget($this,
"perm"),
147 $ilTabs->addSubTabTarget(
149 $this->ctrl->getLinkTargetByClass(array(get_class($this),
"ilobjectpermissionstatusgui"),
"perminfo"),
155 $ilTabs->addSubTabTarget(
157 $this->ctrl->getLinkTarget($this,
"owner"),
164 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
166 $ilTabs->addSubTabTarget(
168 $this->ctrl->getLinkTarget($this,
"log"),
179 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
181 $this->ctrl->redirect($this,
"perm");
186 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
188 $this->tpl->setContent(
$table->getHTML());
193 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
196 $table->writeFilterToSession();
202 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
static _lookupLogin($a_user_id)
lookup login
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.
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.