34 public function __construct(
object $a_parent_obj,
string $a_parent_cmd)
38 $this->
user = $DIC->user();
42 $this->
setRowTemplate(
'tpl.calendar_inbox_shared_row.html',
'components/ILIAS/Calendar');
45 $this->
addColumn($this->
lng->txt(
'name'),
'title',
'50%');
46 $this->
addColumn($this->
lng->txt(
'cal_apps'),
'apps',
'20%');
47 $this->
addColumn($this->
lng->txt(
'create_date'),
'create_date',
'20%');
48 $this->
addColumn($this->
lng->txt(
'cal_accepted'),
'accepted',
'5%');
56 $this->
setTitle($this->
lng->txt(
'cal_shared_calendars'));
60 protected function fillRow(array $a_set): void
62 $this->tpl->setVariable(
'VAL_ID', $a_set[
'cal_id']);
63 $this->tpl->setVariable(
'CALENDAR_NAME', $a_set[
'name']);
64 $this->tpl->setVariable(
'TXT_FROM', $this->
lng->txt(
'owner'));
67 $this->tpl->setVariable(
'LASTNAME', $name[
'lastname']);
68 $this->tpl->setVariable(
'FIRSTNAME', $name[
'firstname']);
70 $this->tpl->setVariable(
'APPS_COUNT', $a_set[
'apps']);
71 $this->tpl->setVariable(
76 if ($a_set[
'accepted']) {
78 $this->tpl->setVariable(
'ALT_ACC', $this->
lng->txt(
'cal_accepted'));
80 if ($a_set[
'declined']) {
82 $this->tpl->setVariable(
'ALT_DEC', $this->
lng->txt(
'cal_declined'));
88 $this->cal_data = $a_calendars;
94 $calendars = $status->getOpenInvitations();
96 return (
bool) count($calendars);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setCalendars(array $a_calendars)
fillRow(array $a_set)
Standard Version of Fill Row.
__construct(object $a_parent_obj, string $a_parent_cmd)
@inheritDoc
Stores status (accepted/declined) of shared calendars.
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
@classDescription Date and time handling
static _lookupName(int $a_user_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
addMultiCommand(string $a_cmd, string $a_text)
setPrefix(string $a_prefix)
set prefix for sort and offset fields (if you have two or more tables on a page that you want to sort...
setFormAction(string $a_form_action, bool $a_multipart=false)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
setSelectAllCheckbox(string $a_select_all_checkbox, bool $a_select_all_on_top=false)
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setData(array $a_data)
Set table data.
static getImagePath(string $image_name, string $module_path="", string $mode="output", bool $offline=false)
get image path (for images located in a template directory)
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc