5 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
18 public function __construct($a_parent_obj,$a_server_id ,$a_parent_cmd =
'')
24 $this->server_id = $a_server_id;
28 $this->
addColumn($this->lng->txt(
'title'),
"role");
29 $this->
addColumn($this->lng->txt(
'obj_role'),
"role");
30 $this->
addColumn($this->lng->txt(
'ldap_group_dn'),
"dn");
31 $this->
addColumn($this->lng->txt(
'ldap_server'),
"url");
32 $this->
addColumn($this->lng->txt(
'ldap_group_member'),
"member_attribute");
33 $this->
addColumn($this->lng->txt(
'ldap_info_text'),
"info");
34 $this->
addColumn($this->lng->txt(
'action'));
36 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj, $a_parent_cmd));
37 $this->
setRowTemplate(
"tpl.ldap_role_mapping_row.html",
"Services/LDAP");
40 $this->
addMultiCommand(
'confirmDeleteRoleMapping', $this->lng->txt(
"delete"));
53 global $ilObjDataCache, $rbacreview;
54 $title = $ilObjDataCache->lookupTitle($rbacreview->getObjectOfRole($a_set[
"role"]));
55 $this->tpl->setVariable(
"VAL_ID", $a_set[
'mapping_id']);
57 $this->tpl->setVariable(
"VAL_ROLE", $a_set[
"role_name"]);
58 $this->tpl->setVariable(
"VAL_GROUP", $a_set[
"dn"]);
59 $this->tpl->setVariable(
"VAL_URL", $a_set[
"url"]);
60 $this->tpl->setVariable(
"VAL_MEMBER", $a_set[
"member_attribute"]);
62 $this->ctrl->setParameter($this->
getParentObject(),
'mapping_id', $a_set[
'mapping_id']);
63 $this->tpl->setVariable(
"EDIT_URL", $this->ctrl->getLinkTarget($this->getParentObject(),
'addRoleMapping'));
64 $this->tpl->setVariable(
"EDIT_TXT", $this->lng->txt(
'copy'));
65 $this->ctrl->setParameter($this->
getParentObject(),
'mapping_id', $a_set[
'mapping_id']);
66 $this->tpl->setVariable(
"COPY_URL", $this->ctrl->getLinkTarget($this->getParentObject(),
'editRoleMapping'));
67 $this->tpl->setVariable(
"COPY_TXT", $this->lng->txt(
'edit'));
75 include_once(
'Services/LDAP/classes/class.ilLDAPRoleGroupMappingSettings.php');
77 $this->
setData($mapping_instance->getMappings());