19 declare(strict_types=1);
46 protected readonly PoolDefinitionList $pool_definition_list
52 array $visible_column_ids,
56 ?array $additional_parameters
58 foreach ($this->
getData($range, $order) as $record) {
61 $record[
'status'] = $this->
lng->txt(
'tst_non_avail_pool_msg_status_' . $record[
'status']);
64 ->withDisabledAction(
'derive_pool', !$derive);
70 return count($this->pool_definition_list->getNonAvailablePools());
76 'id' => $pool->getId(),
77 'title' => $pool->getTitle(),
78 'path' => $pool->getPath(),
79 'status' => $pool->getUnavailabilityStatus(),
80 ], $this->pool_definition_list->getNonAvailablePools());
86 return $this->ui_factory->table()
87 ->data($this, $this->
lng->txt(
'tst_non_avail_pools_table'), $this->
getColumns())
88 ->withRequest($this->request)
90 ->withId(
'tst_non_avail_pools_table');
98 $column_factory = $this->ui_factory->table()->column();
100 'title' => $column_factory->text($this->
lng->txt(
'title')),
101 'path' => $column_factory->text($this->lng->txt(
'path')),
102 'status' => $column_factory->text($this->lng->txt(
'status')),
111 $target = $this->data_factory->uri((
string) $this->request->getUri());
113 [$url_builder, $id_token] = $url_builder->acquireParameters(
118 'derive_pool' => $this->ui_factory->table()->action()->single(
119 $this->
lng->txt(
'tst_derive_new_pool'),
120 $url_builder->withURI($target->withParameter(
'cmd', ConfigGUI::CMD_SELECT_DERIVATION_TARGET)),
__construct(protected readonly \ilCtrlInterface $ctrl, protected readonly \ilLanguage $lng, protected readonly UIFactory $ui_factory, protected readonly DataFactory $data_factory, protected readonly ServerRequestInterface $request, protected readonly PoolDefinitionList $pool_definition_list)
const UNAVAILABILITY_STATUS_LOST
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, ?array $filter_data, ?array $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e...
Both the subject and the direction need to be specified when expressing an order. ...
buildDataRow(string $id, array $record)
getTotalRowCount(?array $filter_data, ?array $additional_parameters)
Mainly for the purpose of pagination-support, it is important to know about the total number of recor...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getData(Range $range, Order $order)
A simple class to express a naive range of whole positive numbers.