4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
5 require_once
'Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php';
6 require_once
'Services/Saml/classes/class.ilSamlIdp.php';
28 $f = $DIC->ui()->factory();
29 $renderer = $DIC->ui()->renderer();
32 $this->
setId(
'saml_idp_list');
33 parent::__construct($a_parent_obj, $a_parent_cmd,
'');
35 $this->ctrl =
$GLOBALS[
'DIC']->ctrl();
37 $this->
setTitle($this->lng->txt(
'auth_saml_idps'));
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 $renderer->render($f->link()->standard(
'https://simplesamlphp.org/docs/stable/simplesamlphp-sp',
'https://simplesamlphp.org/docs/stable/simplesamlphp-sp')),
46 $renderer->render($f->link()->standard($federationMdUrl, $federationMdUrl))
50 $this->
addColumn($this->lng->txt(
'saml_tab_head_idp'),
'',
'80%');
51 $this->
addColumn($this->lng->txt(
'active'),
'',
'5%');
52 $this->
addColumn($this->lng->txt(
'actions'),
'',
'15%');
65 $idp_data[] = $idp->toArray();
76 if ($a_set[
'is_active']) {
78 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'active'));
81 $this->tpl->setVariable(
'TXT_OK', $this->lng->txt(
'inactive'));
84 $this->tpl->setVariable(
'NAME', $a_set[
'entity_id']);
87 $list->setSelectionHeaderClass(
'small');
88 $list->setItemLinkClass(
'small');
89 $list->setId(
'actl_' . $a_set[
'idp_id']);
90 $list->setListTitle($this->lng->txt(
'actions'));
92 $this->ctrl->setParameter($this->
getParentObject(),
'saml_idp_id', $a_set[
'idp_id']);
95 $this->lng->txt(
'edit'),
100 if ($a_set[
'is_active']) {
102 $this->lng->txt(
'deactivate'),
108 $this->lng->txt(
'activate'),
115 $this->lng->txt(
'delete'),
117 $this->ctrl->getLinkTarget($this->
getParentObject(),
'confirmDeleteIdp')
119 $this->ctrl->setParameter($this->
getParentObject(),
'saml_idp_id',
'');
121 if ($this->mayEdit) {
122 $this->tpl->setVariable(
'ACTIONS',
$list->getHTML());
setDescription($a_val)
Set description.
if(isset($_REQUEST['delete'])) $list
$GLOBALS['loaded']
Global hash that tracks already loaded includes.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
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.
User interface class for advanced drop-down selection lists.
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.
__construct($a_parent_obj, $a_parent_cmd="", $mayEdit=true)
ilSamlIdpTableGUI constructor.