19 declare(strict_types=1);
30 private readonly \
ILIAS\
UI\Renderer $ui_renderer,
32 private readonly
bool $hasWriteAccess
34 $this->
setId(
'saml_idp_list');
39 $federationMdUrl = rtrim(ILIAS_HTTP_PATH,
'/') .
'/Services/Saml/lib/metadata.php?client_id=' .
CLIENT_ID;
42 $this->
lng->txt(
'auth_saml_idps_info'),
43 'auth/saml/config/config.php',
44 'auth/saml/config/authsources.php',
45 $this->ui_renderer->render($this->ui_factory->link()->standard(
46 'https://simplesamlphp.org/docs/stable/simplesamlphp-sp',
47 'https://simplesamlphp.org/docs/stable/simplesamlphp-sp' 49 $this->ui_renderer->render($this->ui_factory->link()->standard($federationMdUrl, $federationMdUrl))
53 $this->
addColumn($this->
lng->txt(
'saml_tab_head_idp'),
'',
'80%');
65 $idp_data[] = $idp->toArray();
71 protected function fillRow(array $a_set): void
73 if ($a_set[
'is_active']) {
75 $this->tpl->setVariable(
'TXT_OK', $this->
lng->txt(
'active'));
78 $this->tpl->setVariable(
'TXT_OK', $this->
lng->txt(
'inactive'));
81 $this->tpl->setVariable(
'NAME', $a_set[
'entity_id']);
83 if ($this->hasWriteAccess) {
90 $this->
lng->txt(
'edit'),
93 if ($a_set[
'is_active']) {
97 $this->
lng->txt(
'deactivate'),
104 $this->
lng->txt(
'activate'),
111 $this->
lng->txt(
'delete'),
116 $drop_down = $this->ui_factory
119 ->withLabel($this->
lng->txt(
'actions'));
121 $this->tpl->setVariable(
'ACTIONS', $this->ui_renderer->render($drop_down));
Class ChatMainBarProvider .
static getImagePath(string $img, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(ilSamlSettingsGUI $parent_gui, private readonly \ILIAS\UI\Factory $ui_factory, private readonly \ILIAS\UI\Renderer $ui_renderer, string $parent_cmd, private readonly bool $hasWriteAccess)
setDescription(string $a_val)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
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)