37 $this->objDefinition =& $objDefinition;
40 $this->lng->loadLanguageModule(
"rbac");
44 $this->gui_obj = $a_gui_obj;
46 $this->roles =
array();
59 include_once
"Services/Form/classes/class.ilPropertyFormGUI.php";
61 $form->setFormAction($this->ctrl->getFormAction($this,
"owner"));
62 $form->setTitle($this->lng->txt(
"info_owner_of_object"));
66 'ilRepositorySearchGUI'),
'doUserAutoComplete',
'',
true));
67 $login->setRequired(
true);
69 $login->setInfo($this->lng->txt(
"chown_warning"));
71 $form->addItem($login);
73 $form->addCommandButton(
"changeOwner", $this->lng->txt(
"change_owner"));
75 $this->tpl->setContent($form->getHTML());
80 global $rbacsystem,$ilObjDataCache;
90 if($user_id != $this->gui_obj->object->getOwner())
92 $this->gui_obj->object->setOwner($user_id);
93 $this->gui_obj->object->updateOwner();
94 $ilObjDataCache->deleteCachedEntry($this->gui_obj->object->getId());
96 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
105 if (!$rbacsystem->checkAccess(
"edit_permission",$this->gui_obj->object->getRefId()))
107 $this->ctrl->redirect($this->gui_obj);
111 $this->ctrl->redirect($this,
'owner');
121 $perm = ($a_cmd ==
'perm') ?
true :
false;
122 $info = ($a_cmd ==
'perminfo') ?
true :
false;
123 $owner = ($a_cmd ==
'owner') ?
true :
false;
124 $log = ($a_cmd ==
'log') ?
true :
false;
126 $ilTabs->addSubTabTarget(
"permission_settings", $this->ctrl->getLinkTarget($this,
"perm"),
129 #$ilTabs->addSubTabTarget("permission_settings", $this->ctrl->getLinkTarget($this, "perm2"), 130 # "", "", "", $perm); 132 $ilTabs->addSubTabTarget(
"info_status_info", $this->ctrl->getLinkTargetByClass(
array(get_class($this),
"ilobjectpermissionstatusgui"),
"perminfo"),
134 $ilTabs->addSubTabTarget(
"owner", $this->ctrl->getLinkTarget($this,
"owner"),
137 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
140 $ilTabs->addSubTabTarget(
"log", $this->ctrl->getLinkTarget($this,
"log"),
147 include_once
"Services/AccessControl/classes/class.ilRbacLog.php";
150 $this->ctrl->redirect($this,
"perm");
155 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
156 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
157 $this->tpl->setContent($table->getHTML());
162 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
163 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
165 $table->writeFilterToSession();
171 include_once
"Services/AccessControl/classes/class.ilRbacLogTableGUI.php";
172 $table =
new ilRbacLogTableGUI($this,
"log", $this->gui_obj->object->getRefId());
174 $table->resetFilter();
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
resetOffset($a_in_determination=false)
Reset offset.
static _lookupId($a_user_str)
Lookup id by login.
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)
Class ilPermissionGUI RBAC related output.