19declare(strict_types=1);
31 private \
ILIAS\UI\Factory $ui_factory,
32 private \
ILIAS\UI\Renderer $ui_renderer,
35 private \Psr\Http\Message\ServerRequestInterface $http_request,
36 private \
ILIAS\Data\Factory $df,
37 private string $parent_cmd,
38 private bool $has_write_access
42 $form_action = $this->df->uri(
44 $this->
ctrl->getLinkTarget($this->parent_gui, $this->parent_cmd)
60 return $this->ui_factory
64 $this->
lng->txt(
'auth_saml_idps'),
67 ->withId(str_replace(
'\\',
'', self::class))
71 ->withRequest($this->http_request);
80 'title' => $this->ui_factory
83 ->text($this->
lng->txt(
'saml_tab_head_idp'))
84 ->withIsSortable(
true),
85 'active' => $this->ui_factory
89 $this->
lng->txt(
'status'),
90 $this->ui_factory->symbol()->icon()->custom(
91 'assets/images/standard/icon_ok.svg',
92 $this->lng->txt(
'active'),
95 $this->ui_factory->symbol()->icon()->custom(
96 'assets/images/standard/icon_not_ok.svg',
97 $this->lng->txt(
'inactive'),
101 ->withIsSortable(
true)
102 ->withOrderingLabels(
103 "{$this->lng->txt('status')}, {$this->lng->txt('active')} {$this->lng->txt('order_option_first')}",
104 "{$this->lng->txt('status')}, {$this->lng->txt('inactive')} {$this->lng->txt('order_option_first')}"
114 if (!$this->has_write_access) {
119 'edit' => $this->ui_factory->table()->action()->single(
120 $this->
lng->txt(
'edit'),
121 $this->url_builder->withParameter($this->action_parameter_token, self::TABLE_ACTION_SHOW_IDP_SETTINGS),
124 'activate' => $this->ui_factory->table()->action()->single(
125 $this->
lng->txt(
'activate'),
126 $this->url_builder->withParameter($this->action_parameter_token, self::TABLE_ACTION_ACTIVATE_IDP),
129 'deactivate' => $this->ui_factory->table()->action()->single(
130 $this->
lng->txt(
'deactivate'),
131 $this->url_builder->withParameter($this->action_parameter_token, self::TABLE_ACTION_DEACTIVATE_IDP),
134 'delete' => $this->ui_factory->table()->action()->single(
135 $this->
lng->txt(
'delete'),
136 $this->url_builder->withParameter($this->action_parameter_token, self::TABLE_ACTION_CONFIRM_DELETE_IDP),
149 [$order_field, $order_direction] = $order->join([],
static function ($ret, $key, $value) {
150 return [$key, $value];
153 usort($records,
static function (
ilSamlIdp $left,
ilSamlIdp $right) use ($order_field):
int {
154 if ($order_field ===
'title') {
161 if ($order_direction === \
ILIAS\Data\Order::DESC) {
162 $records = array_reverse($records);
172 array $visible_column_ids,
174 \
ILIAS\Data\Order $order,
175 mixed $additional_viewcontrol_data,
177 mixed $additional_parameters
181 ->buildDataRow((
string) $item->getIdpId(), [
182 'title' => $item->getEntityId(),
183 'active' => $item->isActive()
185 ->withDisabledAction(
189 ->withDisabledAction(
197 mixed $additional_viewcontrol_data,
199 mixed $additional_parameters
201 return count($this->idps);
getRecords(\ILIAS\Data\Range $range, \ILIAS\Data\Order $order)
ILIAS UI URLBuilderToken $row_id_token
getTotalRowCount(mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
ILIAS UI URLBuilder $url_builder
ILIAS UI URLBuilderToken $action_parameter_token
__construct(private ilSamlSettingsGUI $parent_gui, private \ILIAS\UI\Factory $ui_factory, private \ILIAS\UI\Renderer $ui_renderer, private ilLanguage $lng, private ilCtrlInterface $ctrl, private \Psr\Http\Message\ServerRequestInterface $http_request, private \ILIAS\Data\Factory $df, private string $parent_cmd, private bool $has_write_access)
getRows(\ILIAS\UI\Component\Table\DataRowBuilder $row_builder, array $visible_column_ids, \ILIAS\Data\Range $range, \ILIAS\Data\Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
static strCmp(string $a, string $b)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.