32 $this->
ctrl = $DIC->ctrl();
33 $this->
lng = $DIC->language();
37 $this->
addColumn($this->
lng->txt(
'shib_rule_type'),
'type',
"20%");
38 $this->
addColumn($this->
lng->txt(
'shib_ilias_role'),
'role',
"30%");
39 $this->
addColumn($this->
lng->txt(
'shib_rule_condition'),
'condition',
"20%");
40 $this->
addColumn($this->
lng->txt(
'shib_add_remove'),
'add_remove',
"30%");
42 $this->
setRowTemplate(
"tpl.show_role_assignment_row.html",
"components/ILIAS/AuthShibboleth");
50 protected function fillRow(array $a_set): void
52 $this->tpl->setVariable(
'VAL_ID', $a_set[
'id']);
53 $this->tpl->setVariable(
'VAL_TYPE', $a_set[
'type']);
54 $this->tpl->setVariable(
'VAL_CONDITION', $a_set[
'condition']);
55 $this->tpl->setVariable(
'VAL_ROLE', $a_set[
'role']);
56 $this->tpl->setVariable(
'TXT_EDIT', $this->
lng->txt(
'edit'));
59 $this->tpl->setVariable(
'STATA_ALT', $this->
lng->txt(
'yes'));
62 $this->tpl->setVariable(
'STATA_ALT', $this->
lng->txt(
'no'));
64 if ($a_set[
'remove']) {
66 $this->tpl->setVariable(
'STATB_ALT', $this->
lng->txt(
'yes'));
69 $this->tpl->setVariable(
'STATB_ALT', $this->
lng->txt(
'no'));
72 $this->tpl->setVariable(
'EDIT_LINK', $this->
ctrl->getLinkTarget($this->getParentObject(),
'editRoleAssignment'));
76 public function parse(array $rule_objs): void
79 foreach ($rule_objs as $rule) {
80 $tmp_arr[
'id'] = $rule->getRuleId();
81 $tmp_arr[
'type'] = $rule->isPluginActive() ? $this->
lng->txt(
'shib_role_by_plugin') : $this->
lng->txt(
'shib_role_by_attribute');
82 $tmp_arr[
'add'] = $rule->isAddOnUpdateEnabled();
83 $tmp_arr[
'remove'] = $rule->isRemoveOnUpdateEnabled();
84 $tmp_arr[
'condition'] = $rule->conditionToString();
86 $records_arr[] = $tmp_arr;
Class ilAuthShibbolethSettingsGUI.
setFormAction(string $a_form_action, bool $a_multipart=false)
static _lookupTitle(int $obj_id)
setDefaultOrderField(string $a_defaultorderfield)
__construct(ilAuthShibbolethSettingsGUI $a_parent_obj, string $a_parent_cmd='')
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
setDefaultOrderDirection(string $a_defaultorderdirection)
__construct(Container $dic, ilPlugin $plugin)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)