24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
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'));
85 $this->tpl->setVariable(
'STATA_ALT',$this->lng->txt(
'yes'));
90 $this->tpl->setVariable(
'STATA_ALT',$this->lng->txt(
'no'));
95 $this->tpl->setVariable(
'STATB_ALT',$this->lng->txt(
'yes'));
100 $this->tpl->setVariable(
'STATB_ALT',$this->lng->txt(
'no'));
104 $this->ctrl->setParameter($this->
getParentObject(),
'rule_id',$a_set[
'id']);
105 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editRoleAssignment'));
117 foreach($rule_objs as $rule)
119 $tmp_arr[
'id'] = $rule->getRuleId();
121 switch($rule->getType())
124 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_attribute');
127 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_group');
130 $tmp_arr[
'type'] = $this->lng->txt(
'ldap_role_by_plugin');
135 $tmp_arr[
'condition'] = $rule->conditionToString();
136 $tmp_arr[
'add'] = $rule->isAddOnUpdateEnabled();
137 $tmp_arr[
'remove'] = $rule->isRemoveOnUpdateEnabled();
141 $records_arr[] = $tmp_arr;
144 $this->
setData($records_arr ? $records_arr : array());