24 include_once(
'./Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
26 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
54 parent::__construct($a_parent_obj, $a_parent_cmd);
56 $this->
setRowTemplate(
'tpl.calendar_inbox_shared_row.html',
'Services/Calendar');
59 $this->
addColumn($this->lng->txt(
'name'),
'title',
'50%');
60 $this->
addColumn($this->lng->txt(
'cal_apps'),
'apps',
'20%');
61 $this->
addColumn($this->lng->txt(
'create_date'),
'create_date',
'20%');
62 $this->
addColumn($this->lng->txt(
'cal_accepted'),
'accepted',
'5%');
64 $this->
addMultiCommand(
'acceptShared', $this->lng->txt(
'cal_share_accept'));
65 $this->
addMultiCommand(
'declineShared', $this->lng->txt(
'cal_share_decline'));
70 $this->
setTitle($this->lng->txt(
'cal_shared_calendars'));
83 $this->tpl->setVariable(
'VAL_ID', $a_set[
'cal_id']);
84 $this->tpl->setVariable(
'CALENDAR_NAME', $a_set[
'name']);
85 $this->tpl->setVariable(
'TXT_FROM', $this->lng->txt(
'owner'));
88 $this->tpl->setVariable(
'LASTNAME',
$name[
'lastname']);
89 $this->tpl->setVariable(
'FIRSTNAME',
$name[
'firstname']);
91 $this->tpl->setVariable(
'APPS_COUNT', $a_set[
'apps']);
94 if ($a_set[
'accepted']) {
96 $this->tpl->setVariable(
'ALT_ACC', $this->lng->txt(
'cal_accepted'));
98 if ($a_set[
'declined']) {
100 $this->tpl->setVariable(
'ALT_DEC', $this->lng->txt(
'cal_declined'));
114 $this->cal_data = $a_calendars ? $a_calendars : array();
135 return count($calendars) ? true :
false;
static _lookupName($a_user_id)
lookup user name
Stores status (accepted/declined) of shared calendars.
parse()
parse calendar data
static formatDate(ilDateTime $date, $a_skip_day=false, $a_include_wd=false, $include_seconds=false)
Format a date public.
getParentObject()
Get parent object.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
__construct($a_parent_obj, $a_parent_cmd)
Constructor.
Show shared calendars for a specific user.
setSelectAllCheckbox($a_select_all_checkbox, $a_select_all_on_top=false)
Set the name of the checkbox that should be toggled with a select all button.
static getImagePath($img, $module_path="", $mode="output", $offline=false)
get image path (for images located in a template directory)
setCalendars($a_calendars)
set calendars
addMultiCommand($a_cmd, $a_text)
Add Command button.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
getOpenInvitations()
Get open invitations.
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.