19declare(strict_types=1);
33use Psr\Http\Message\ServerRequestInterface;
42 private readonly
int $parent_obj_id,
43 private readonly
Factory $ui_factory,
46 private readonly DataFactory $data_factory,
47 private readonly ServerRequestInterface $httpRequest,
53 $query_params_namespace = [
'rating',
'category',
'ordering'];
54 $uri = $this->data_factory->uri(
55 ILIAS_HTTP_PATH .
'/' . $this->
ctrl->getLinkTargetByClass(ilRatingCategoryGUI::class,
'handleTableActions')
58 [$url_builder, $action_parameter_token, $row_id_token] = $url_builder->acquireParameters(
59 $query_params_namespace,
64 return $this->ui_factory
68 $uri->withParameter(
'cmd',
'updateOrder'),
69 $this->lng->txt(
'rating_categories'),
73 'rating_category_ordering_table'
75 ->withRequest($this->httpRequest)
79 $action_parameter_token,
91 'edit' => $this->ui_factory->table()->action()->single(
92 $this->
lng->txt(
'edit'),
93 $url_builder->withParameter($action_parameter_token,
'edit'),
96 'delete' => $this->ui_factory->table()->action()->single(
97 $this->
lng->txt(
'delete'),
98 $url_builder->withParameter($action_parameter_token,
'confirmDelete'),
106 array $visible_column_ids,
108 $this->initRecords();
109 foreach ($this->records as $record) {
116 if (!$this->records) {
130 'title' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'title')),
131 'description' => $this->ui_factory->table()->column()->text($this->
lng->txt(
'description'))
137 $this->initRecords();
139 return count($this->records);
Builds a Color from either hex- or rgb values.
getActions(URLBuilder $url_builder, URLBuilderToken $action_parameter_token, URLBuilderToken $row_id_token)
__construct(private readonly int $parent_obj_id, private readonly Factory $ui_factory, private readonly ilLanguage $lng, private readonly ilCtrlInterface $ctrl, private readonly DataFactory $data_factory, private readonly ServerRequestInterface $httpRequest,)
getTotalRowCount(?array $filter_data, ?array $additional_parameters)
getRows(OrderingRowBuilder $row_builder, array $visible_column_ids,)
This is called by the (ordering-)table to retrieve rows; map data-records to rows using the $row_buil...
Class ilRatingCategoryGUI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getAllForObject(int $a_parent_obj_id)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
buildOrderingRow(string $id, array $record)
This describes a Table to specify the order of its data (rows).
This is how the factory for UI elements looks.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...