24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
47 public function __construct($a_parent_obj, $a_parent_cmd =
'')
54 parent::__construct($a_parent_obj, $a_parent_cmd);
56 $this->
addColumn($this->lng->txt(
'ldap_rule_type'),
'type',
"20%");
57 $this->
addColumn($this->lng->txt(
'ldap_ilias_role'),
'role',
"30%");
58 $this->
addColumn($this->lng->txt(
'ldap_rule_condition'),
'condition',
"20%");
59 $this->
addColumn($this->lng->txt(
'ldap_add_remove'),
'',
'30%');
61 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
62 $this->
setRowTemplate(
"tpl.show_role_assignment_row.html",
"Services/LDAP");
76 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
77 $this->tpl->setVariable(
'VAL_TYPE', $a_set[
'type']);
78 $this->tpl->setVariable(
'VAL_CONDITION', $a_set[
'condition']);
79 $this->tpl->setVariable(
'VAL_ROLE', $a_set[
'role']);
80 $this->tpl->setVariable(
'TXT_EDIT', $this->lng->txt(
'edit'));
84 $this->tpl->setVariable(
'STATA_ALT', $this->lng->txt(
'yes'));
87 $this->tpl->setVariable(
'STATA_ALT', $this->lng->txt(
'no'));
89 if ($a_set[
'remove']) {
91 $this->tpl->setVariable(
'STATB_ALT', $this->lng->txt(
'yes'));
94 $this->tpl->setVariable(
'STATB_ALT', $this->lng->txt(
'no'));
98 $this->ctrl->setParameter($this->
getParentObject(),
'rule_id', $a_set[
'id']);
99 $this->tpl->setVariable(
'EDIT_LINK', $this->ctrl->getLinkTarget($this->getParentObject(),
'editRoleAssignment'));
111 foreach ($rule_objs as
$rule) {
112 $tmp_arr[
'id'] = $rule->getRuleId();
114 switch ($rule->getType()) {
116 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_attribute');
119 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_group');
122 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_plugin');
127 $tmp_arr[
'condition'] = $rule->conditionToString();
128 $tmp_arr[
'add'] = $rule->isAddOnUpdateEnabled();
129 $tmp_arr[
'remove'] = $rule->isRemoveOnUpdateEnabled();
133 $records_arr[] = $tmp_arr;
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
static _lookupTitle($a_id)
lookup object title
getParentObject()
Get parent object.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
__construct($a_parent_obj, $a_parent_cmd='')
constructor
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.