33 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
56 $this->
addColumn($this->lng->txt(
'ldap_rule_type'),
'type',
"30%");
57 $this->
addColumn($this->lng->txt(
'ldap_ilias_role'),
'role',
"20%");
58 $this->
addColumn($this->lng->txt(
'ldap_rule_condition'),
'condition',
"50%");
60 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
61 $this->
setRowTemplate(
"tpl.show_role_assignment_row.html",
"Services/LDAP");
75 $this->tpl->setVariable(
'VAL_ID',$a_set[
'id']);
76 $this->tpl->setVariable(
'VAL_TYPE',$a_set[
'type']);
77 $this->tpl->setVariable(
'VAL_CONDITION',$a_set[
'condition']);
78 $this->tpl->setVariable(
'VAL_ROLE',$a_set[
'role']);
79 $this->tpl->setVariable(
'TXT_EDIT',$this->lng->txt(
'edit'));
81 $this->ctrl->setParameter($this->
getParentObject(),
'rule_id',$a_set[
'id']);
82 $this->tpl->setVariable(
'EDIT_LINK',$this->ctrl->getLinkTarget($this->getParentObject(),
'editRoleAssignment'));
92 public function parse($rule_objs)
94 foreach($rule_objs as $rule)
96 $tmp_arr[
'id'] = $rule->getRuleId();
98 $this->lng->txt(
'ldap_role_by_group') :
99 $this->lng->txt(
'ldap_role_by_attribute');
100 $tmp_arr[
'condition'] = $rule->conditionToString();
103 $records_arr[] = $tmp_arr;
106 $this->
setData($records_arr ? $records_arr : array());