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;
26 parent::__construct($a_parent_obj, $a_parent_cmd);
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());
static prepareFormOutput($a_str, $a_strip=false)
prepares string output for html forms public
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static shortenText( $a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
getItems()
get items from db
__construct($a_parent_obj, $a_server_id, $a_parent_cmd='')
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static _getInstanceByServerId($a_server_id)
Get instance of class.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
fillRow($a_set)
fill row type $ilObjDataCache ilRbacReview $rbacreview