19declare(strict_types=1);
39 private const string ID =
'pst';
43 private readonly UIFactory $ui_factory,
44 private readonly DataFactory $data_factory,
60 return $this->url_builder->acquireParameters(
73 $column_factory = $this->ui_factory->table()->column();
76 'name' => $column_factory->text($this->
lng->txt(
'personal_settings_name')),
77 'description' => $column_factory->text($this->
lng->txt(
'personal_settings_description'))->withIsSortable(
false),
78 'tstamp' => $column_factory->date($this->
lng->txt(
'personal_settings_timestamp'), $this->user->getDateTimeFormat()),
79 'author' => $column_factory->text($this->
lng->txt(
'personal_settings_author'))
85 return $this->ui_factory->table()
86 ->data($this, $this->
lng->txt(
'personal_settings_templates_available'), $this->getColumns())
87 ->withRequest($this->test_request->getRequest())
88 ->withActions($this->table_actions->getActions(...$this->acquireParameters()))
95 array $visible_column_ids,
98 mixed $additional_viewcontrol_data,
100 mixed $additional_parameters
104 'name' => $template->getName(),
105 'tstamp' => $template->getCreatedAt(),
106 'description' => $template->getDescription(),
107 'author' => $template->getAuthor(),
110 yield $row_builder->
buildDataRow((
string) $template->getId(), $row);
115 mixed $additional_viewcontrol_data,
117 mixed $additional_parameters
Builds a Color from either hex- or rgb values.
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.
const string ACTION_TYPE_PARAMETER
const string ACTION_PARAMETER
const string ROW_ID_PARAMETER
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...
__construct(private readonly Language $lng, private readonly UIFactory $ui_factory, private readonly DataFactory $data_factory, private readonly \ilObjUser $user, private readonly RequestDataCollector $test_request, private readonly PersonalSettingsTableActions $table_actions, private readonly URLBuilder $url_builder, private readonly PersonalSettingsRepository $repository,)
getRows(DataRowBuilder $row_builder, array $visible_column_ids, Range $range, Order $order, mixed $additional_viewcontrol_data, mixed $filter_data, mixed $additional_parameters)
This is called by the table to retrieve rows; map data-records to rows using the $row_builder e....
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes commonalities between the different modals.
A Column describes the form of presentation for a certain aspect of data, i.e.
buildDataRow(string $id, array $record)
This describes a Data Table.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...