19declare(strict_types=1);
46 protected UIFactory $ui_factory,
49 protected DataFactory $data_factory
58 $date_format = $this->
user->getDateFormat();
60 $date_format = $this->data_factory->dateFormat()->withTime24($date_format);
62 $date_format = $this->data_factory->dateFormat()->withTime12($date_format);
67 $this->
lng->txt(
'name')
68 )->withIsSortable(
true);
70 $this->
lng->txt(
'owner')
71 )->withIsSortable(
true);
73 $this->
lng->txt(
'cal_apps')
74 )->withIsSortable(
true);
76 $this->
lng->txt(
'create_date'),
78 )->withIsSortable(
true);
82 $this->
lng->txt(
'cal_share_accept'),
83 $url_builder->
withParameter($action_token, self::ACCEPT_INVITATION_ACTION),
87 $this->
lng->txt(
'cal_share_decline'),
88 $url_builder->
withParameter($action_token, self::DECLINE_INVITATION_ACTION),
92 return $this->ui_factory->table()->data(
93 $this->data_retrieval,
94 $this->
lng->txt(
'cal_shared_calendars'),
96 )->withActions($actions)->withRequest($this->
http->request());
__construct(protected DataRetrieval $data_retrieval, protected ilLanguage $lng, protected UIFactory $ui_factory, protected HTTP $http, protected ilObjUser $user, protected DataFactory $data_factory)
const string OWNER_COLUMN
const string CREATED_ON_COLUMN
const string APPOINTMENTS_COUNT_COLUMN
const string DECLINE_INVITATION_ACTION
const string ACCEPT_INVITATION_ACTION
Builds a Color from either hex- or rgb values.
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.