19declare(strict_types=1);
47 protected UIFactory $ui_factory,
50 protected DataFactory $data_factory
59 $date_format = $this->
user->getDateFormat();
61 $date_format = $this->data_factory->dateFormat()->withTime24($date_format);
63 $date_format = $this->data_factory->dateFormat()->withTime12($date_format);
67 $columns[
self::COL_TYPE] = $this->ui_factory->table()->column()->text(
68 $this->
lng->txt(
'type')
69 )->withIsSortable(
true);
70 $columns[
self::COL_SIZE] = $this->ui_factory->table()->column()->text(
71 $this->
lng->txt(
'ps_size')
72 )->withIsSortable(
true);
73 $columns[
self::COL_DATE] = $this->ui_factory->table()->column()->date(
74 $this->
lng->txt(
'date'),
76 )->withIsSortable(
true);
80 $this->
lng->txt(
'download'),
81 $url_builder->
withParameter($action_token, self::ACTION_DOWNLOAD),
85 $this->
lng->txt(
'delete'),
86 $url_builder->
withParameter($action_token, self::ACTION_DELETE),
90 return $this->ui_factory->table()->data(
91 $this->data_retrieval,
92 $this->
lng->txt(
'ps_export_files'),
94 )->withActions($actions)->withRequest($this->
http->request());
Builds a Color from either hex- or rgb values.
__construct(protected DataRetrieval $data_retrieval, protected ilLanguage $lng, protected UIFactory $ui_factory, protected HTTP $http, protected ilObjUser $user, protected DataFactory $data_factory)
const string ACTION_DOWNLOAD
const string ACTION_DELETE
withParameter(URLBuilderToken $token, string|array $value)
Change an acquired parameter's value if the supplied token is valid.
Stores all calendar relevant settings.
This describes a Data Table.
readonly HttpService $http
static http()
Fetches the global http state from ILIAS.