ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilCalendarInboxGUI Class Reference
+ Inheritance diagram for ilCalendarInboxGUI:
+ Collaboration diagram for ilCalendarInboxGUI:

Public Member Functions

 __construct (ilDate $seed_date)
 Constructor public. More...
 
 initialize (int $a_calendar_presentation_type)
 
 executeCommand ()
 
- Public Member Functions inherited from ilCalendarViewGUI
 __construct (ilDate $seed, int $presentation_type)
 
 setConsulationHoursUserId (int $a_user_id)
 
 getConsultationHoursUserId ()
 
 initialize (int $a_calendar_presentation_type)
 
 getCurrentApp ()
 
 getEvents ()
 
 getDatesForItem ($item)
 
 getModalForApp ()
 Get modal for appointment (see similar code in ilCalendarBlockGUI) More...
 
 getAppointmentShyButton (ilCalendarEntry $a_calendar_entry, string $a_dstart, string $a_title_forced="")
 
 getActivePlugins (string $a_slot_id)
 
 getModalTitleByPlugins (string $a_current_title)
 
 getContentByPlugins (ilCalendarEntry $a_cal_entry, int $a_start_date, string $a_content, ilTemplate $a_tpl)
 
 addToolbarFileDownload ()
 Add download link to toolbar. More...
 
 downloadFiles ()
 Download files related to the appointments showed in the current calendar view (day,week,month,list). More...
 
 getBucketTitle ()
 get proper label to add in the background task popover More...
 
 countEventsInView ()
 get the events starting between 2 dates based in seed + view options. More...
 

Protected Member Functions

 inbox ()
 
- Protected Member Functions inherited from ilCalendarViewGUI
 initAppointmentIdFromQuery ()
 
 initInitialDateFromQuery ()
 
 initInitialDateTimeFromQuery ()
 
 initBookingUserFromQuery ()
 

Protected Attributes

ilCalendarUserSettings $user_settings
 
string $timezone = 'UTC'
 
ilCalendarAppointmentColors $app_colors
 
- Protected Attributes inherited from ilCalendarViewGUI
int $presentation_type = self::CAL_PRESENTATION_UNDEFINED
 
bool $view_with_appointments = false
 
ilDate $seed
 
int $ch_user_id = 0
 
string $period_end_day = null
 
Factory $ui_factory
 
Renderer $ui_renderer
 
ilCtrlInterface $ctrl
 
ilToolbarGUI $toolbar
 
ilLogger $logger
 
ILIAS DI UIServices $ui
 
ilLanguage $lng
 
ilObjUser $user
 
ilTemplate $tpl
 
ilGlobalTemplateInterface $main_tpl
 
ilComponentFactory $component_factory
 
ilTabsGUI $tabs_gui
 
RefineryFactory $refinery
 
HttpServices $http
 

Additional Inherited Members

- Data Fields inherited from ilCalendarViewGUI
const CAL_PRESENTATION_UNDEFINED = 0
 
const CAL_PRESENTATION_DAY = 1
 
const CAL_PRESENTATION_WEEK = 2
 
const CAL_PRESENTATION_MONTH = 3
 
const CAL_PRESENTATION_AGENDA_LIST = 9
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilCalendarInboxGUI::__construct ( ilDate  $seed_date)

Constructor public.

Parameters

Definition at line 36 of file class.ilCalendarInboxGUI.php.

References ILIAS\GlobalScreen\Provider\__construct(), and ilCalendarViewGUI\CAL_PRESENTATION_AGENDA_LIST.

37  {
39  }
__construct(Container $dic, ilPlugin $plugin)
+ Here is the call graph for this function:

Member Function Documentation

◆ executeCommand()

ilCalendarInboxGUI::executeCommand ( )

Definition at line 54 of file class.ilCalendarInboxGUI.php.

References ILIAS\Repository\ctrl(), ilSession\get(), and ilCalendarViewGUI\initAppointmentIdFromQuery().

54  : void
55  {
56  $next_class = $this->ctrl->getNextClass();
57  switch ($next_class) {
58  case 'ilcalendarappointmentgui':
59  $this->ctrl->setReturn($this, '');
60  $this->tabs_gui->setSubTabActive((string) ilSession::get('cal_last_tab'));
61 
62  $app = new ilCalendarAppointmentGUI($this->seed, $this->seed, $this->initAppointmentIdFromQuery());
63  $this->ctrl->forwardCommand($app);
64  break;
65 
66  case 'ilcalendaragendalistgui':
67  $cal_list = new ilCalendarAgendaListGUI($this->seed);
68  $html = $this->ctrl->forwardCommand($cal_list);
69  // this fixes 0027035 since many methods ilCalendarAppointmentGUI set their own content.
70  if (strlen($html)) {
71  $this->main_tpl->setContent($html);
72  }
73  break;
74 
75  default:
76  $cmd = $this->ctrl->getCmd("inbox");
77  $this->$cmd();
78  $this->main_tpl->setContent($this->tpl->get());
79  break;
80  }
81  }
static get(string $a_var)
Administrate calendar appointments.
+ Here is the call graph for this function:

◆ inbox()

ilCalendarInboxGUI::inbox ( )
protected

Definition at line 83 of file class.ilCalendarInboxGUI.php.

References ILIAS\Repository\ctrl().

83  : void
84  {
85  $this->tpl = new ilTemplate('tpl.inbox.html', true, true, 'components/ILIAS/Calendar');
86 
87  // agenda list
88  $cal_list = new ilCalendarAgendaListGUI($this->seed);
89  $html = $this->ctrl->getHTML($cal_list);
90  $this->tpl->setVariable('CHANGED_TABLE', $html);
91  }
+ Here is the call graph for this function:

◆ initialize()

ilCalendarInboxGUI::initialize ( int  $a_calendar_presentation_type)

Definition at line 44 of file class.ilCalendarInboxGUI.php.

References ilCalendarUserSettings\_getInstanceByUserId(), and ILIAS\Repository\user().

44  : void
45  {
46  parent::initialize($a_calendar_presentation_type);
47  $this->user_settings = ilCalendarUserSettings::_getInstanceByUserId($this->user->getId());
48  $this->app_colors = new ilCalendarAppointmentColors($this->user->getId());
49  if ($this->user->getTimeZone()) {
50  $this->timezone = $this->user->getTimeZone();
51  }
52  }
static _getInstanceByUserId(int $a_user_id)
+ Here is the call graph for this function:

Field Documentation

◆ $app_colors

ilCalendarAppointmentColors ilCalendarInboxGUI::$app_colors
protected

Definition at line 29 of file class.ilCalendarInboxGUI.php.

◆ $timezone

string ilCalendarInboxGUI::$timezone = 'UTC'
protected

Definition at line 28 of file class.ilCalendarInboxGUI.php.

◆ $user_settings

ilCalendarUserSettings ilCalendarInboxGUI::$user_settings
protected

Definition at line 27 of file class.ilCalendarInboxGUI.php.


The documentation for this class was generated from the following file: