ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilCalendarViewGUI Class Reference
+ Inheritance diagram for ilCalendarViewGUI:
+ Collaboration diagram for ilCalendarViewGUI:

Public Member Functions

 __construct (ilDate $seed, $presentation_type)
 
 setConsulationHoursUserId ($a_user_id)
 
 getConsultationHoursUserId ()
 
 initialize ($a_calendar_presentation_type)
 View initialization. More...
 
 getCurrentApp ()
 Get app for id. More...
 
 getEvents ()
 Get events. More...
 
 getDatesForItem ($item)
 Get start/end date for item. More...
 
 getModalForApp ()
 Get modal for appointment (see similar code in ilCalendarBlockGUI) More...
 
 getAppointmentShyButton ($a_calendar_entry, $a_dstart, $a_title_forced="")
 
 getActivePlugins ($a_slot_id)
 
 getModalTitleByPlugins ($a_current_title)
 
 getContentByPlugins ($a_cal_entry, $a_start_date, $a_content, $a_tpl)
 
 addToolbarActions ()
 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...
 

Data Fields

const CAL_PRESENTATION_DAY = 1
 
const CAL_PRESENTATION_WEEK = 2
 
const CAL_PRESENTATION_MONTH = 3
 
const CAL_PRESENTATION_AGENDA_LIST = 9
 

Protected Attributes

 $ui_factory
 
 $ui_renderer
 
 $ctrl
 
 $presentation_type
 
 $toolbar
 
 $logger
 
 $ui
 
 $view_with_appointments
 
 $lng
 
 $user
 
 $seed
 
 $ch_user_id = 0
 

Detailed Description

Author
Jesús López Reyes lopez.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 10 of file class.ilCalendarViewGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilCalendarViewGUI::__construct ( ilDate  $seed,
  $presentation_type 
)
Parameters
ilDate$seed
int$presentation_type

Definition at line 84 of file class.ilCalendarViewGUI.php.

References $presentation_type, $seed, and initialize().

85  {
86  $this->seed = $seed;
88  }
initialize($a_calendar_presentation_type)
View initialization.
+ Here is the call graph for this function:

Member Function Documentation

◆ addToolbarActions()

ilCalendarViewGUI::addToolbarActions ( )

Add download link to toolbar.

//TODO rename this method to something like addToolbarDonwloadFiles

Parameters

Definition at line 402 of file class.ilCalendarViewGUI.php.

References $ctrl, $f, $lng, $toolbar, $ui_factory, ilCalendarSettings\_getInstance(), and countEventsInView().

403  {
404  $settings = ilCalendarSettings::_getInstance();
405 
406  if ($settings->isBatchFileDownloadsEnabled()) {
407  if ($this->presentation_type == self::CAL_PRESENTATION_AGENDA_LIST) {
408  $num_events = $this->countEventsInView();
409  }
410  if ($this->view_with_appointments || $num_events) {
413  $lng = $this->lng;
414  $ctrl = $this->ctrl;
415 
416  // file download
417  $add_button = $f->button()->standard(
418  $lng->txt("cal_download_files"),
419  $ctrl->getLinkTarget($this, "downloadFiles")
420  );
421  $toolbar->addSeparator();
422  $toolbar->addComponent($add_button);
423  }
424  }
425  }
static _getInstance()
get singleton instance
countEventsInView()
get the events starting between 2 dates based in seed + view options.
+ Here is the call graph for this function:

◆ countEventsInView()

ilCalendarViewGUI::countEventsInView ( )

get the events starting between 2 dates based in seed + view options.

Returns
int number of events in the calendar list view.

Definition at line 497 of file class.ilCalendarViewGUI.php.

References $end, $events, $seed, $start, getEvents(), ilCalendarAgendaListGUI\getPeriod(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_MONTH, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, and ilCalendarAgendaListGUI\PERIOD_WEEK.

Referenced by addToolbarActions().

498  {
500  $end = clone $start;
501  $get_list_option = ilCalendarAgendaListGUI::getPeriod();
502  switch ($get_list_option) {
504  //$end->increment(IL_CAL_DAY,1);
505  break;
507  $end->increment(IL_CAL_MONTH, 1);
508  break;
510  $end->increment(IL_CAL_MONTH, 6);
511  break;
513  default:
514  $end->increment(IL_CAL_DAY, 7);
515  break;
516  }
517  $events = $this->getEvents();
518  $num_events = 0;
519  foreach ($events as $event) {
520  $event_start = $event['event']->getStart()->get(IL_CAL_DATE);
521 
522  if ($event_start >= $start->get(IL_CAL_DATE) && $event_start <= $end->get(IL_CAL_DATE)) {
523  $num_events++;
524  }
525  }
526  return $num_events;
527  }
if($argc< 2) $events
const IL_CAL_MONTH
$start
Definition: bench.php:8
const IL_CAL_DAY
static getPeriod()
needed in CalendarInboxGUI to get events using a proper period.
const IL_CAL_DATE
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ downloadFiles()

ilCalendarViewGUI::downloadFiles ( )

Download files related to the appointments showed in the current calendar view (day,week,month,list).

Not modals

Definition at line 430 of file class.ilCalendarViewGUI.php.

References $GLOBALS, getBucketTitle(), getEvents(), and user().

431  {
432  include_once './Services/Calendar/classes/BackgroundTasks/class.ilDownloadFilesBackgroundTask.php';
433  $download_job = new ilDownloadFilesBackgroundTask($GLOBALS['DIC']->user()->getId());
434 
435  $download_job->setBucketTitle($this->getBucketTitle());
436  $download_job->setEvents($this->getEvents());
437  if ($download_job->run()) {
438  ilUtil::sendSuccess($this->lng->txt('cal_download_files_started'), true);
439  }
440  $GLOBALS['DIC']->ctrl()->redirect($this);
441  }
getBucketTitle()
get proper label to add in the background task popover
user()
Definition: user.php:4
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:

◆ getActivePlugins()

ilCalendarViewGUI::getActivePlugins (   $a_slot_id)

Definition at line 323 of file class.ilCalendarViewGUI.php.

References $DIC, $res, and IL_COMP_SERVICE.

Referenced by getContentByPlugins(), getModalTitleByPlugins(), and ilCalendarAgendaListGUI\getPluginAgendaItem().

324  {
325  global $DIC;
326 
327  $ilPluginAdmin = $DIC['ilPluginAdmin'];
328 
329  $res = array();
330 
331  foreach ($ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE, "Calendar", $a_slot_id) as $plugin_name) {
332  $res[] = $ilPluginAdmin->getPluginObject(
334  "Calendar",
335  $a_slot_id,
336  $plugin_name
337  );
338  }
339 
340  return $res;
341  }
global $DIC
Definition: saml.php:7
foreach($_POST as $key=> $value) $res
const IL_COMP_SERVICE
+ Here is the caller graph for this function:

◆ getAppointmentShyButton()

ilCalendarViewGUI::getAppointmentShyButton (   $a_calendar_entry,
  $a_dstart,
  $a_title_forced = "" 
)
Parameters
$a_calendar_entry
$a_dstart
string$a_title_forced//used in plugins to rename the shy button title.
Returns
string shy button html

Definition at line 290 of file class.ilCalendarViewGUI.php.

References $_GET, $f, $r, $title, $ui_factory, $ui_renderer, $url, getConsultationHoursUserId(), and IL_CAL_DATE.

Referenced by getContentByPlugins(), ilCalendarWeekGUI\showAppointment(), ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarWeekGUI\showFulldayAppointment(), and ilCalendarDayGUI\showFulldayAppointment().

291  {
294 
295  $this->ctrl->setParameter($this, "app_id", $a_calendar_entry->getEntryId());
296 
297  if ($this->getConsultationHoursUserId()) {
298  $this->ctrl->setParameter($this, 'chuid', $this->getConsultationHoursUserId());
299  }
300  $this->ctrl->setParameter($this, 'dt', $a_dstart);
301  $this->ctrl->setParameter($this, 'seed', $this->seed->get(IL_CAL_DATE));
302  $url = $this->ctrl->getLinkTarget($this, "getModalForApp", "", true, false);
303  $this->ctrl->setParameter($this, "app_id", $_GET["app_id"]);
304  $this->ctrl->setParameter($this, "dt", $_GET["dt"]);
305  $this->ctrl->setParameter($this, 'seed', $_GET["seed"]);
306 
307  $modal = $f->modal()->roundtrip('', [])->withAsyncRenderUrl($url);
308 
309  //Day view presents the titles with the full length.(agenda:class.ilCalendarAgendaListGUI.php)
310  if ($this->presentation_type == self::CAL_PRESENTATION_DAY) {
311  $title = ($a_title_forced == "")? $a_calendar_entry->getPresentationTitle(false) : $a_title_forced;
312  } else {
313  $title = ($a_title_forced == "")? $a_calendar_entry->getPresentationTitle() : $a_title_forced;
314  }
315 
316 
317  $comps = [$f->button()->shy($title, "#")->withOnClick($modal->getShowSignal()), $modal];
318 
319  return $r->render($comps);
320  }
$_GET["client_id"]
$r
Definition: example_031.php:79
const IL_CAL_DATE
$url
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBucketTitle()

ilCalendarViewGUI::getBucketTitle ( )

get proper label to add in the background task popover

Returns
string

Definition at line 447 of file class.ilCalendarViewGUI.php.

References $start, ilCalendarUtil\_buildWeekDayList(), ilCalendarUserSettings\_getInstanceByUserId(), ilSession\get(), IL_CAL_DATE, IL_CAL_FKT_DATE, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, ilCalendarAgendaListGUI\PERIOD_WEEK, and user().

Referenced by downloadFiles().

448  {
449  //definition of bucket titles here: 21365
450  $user_settings = ilCalendarUserSettings::_getInstanceByUserId($this->user->getId());
451  $bucket_title = $this->lng->txt("cal_calendar_download");
452 
453  switch ($this->presentation_type) {
454  case self::CAL_PRESENTATION_DAY:
455  $bucket_title .= " " . $this->seed->get(IL_CAL_DATE);
456  break;
457  case self::CAL_PRESENTATION_WEEK:
458  $weekday_list = ilCalendarUtil::_buildWeekDayList($this->seed, $user_settings->getWeekStart())->get();
459  $start = current($weekday_list);
460  $char = strtolower(mb_substr($this->lng->txt("week"), 0, 1));
461  $bucket_title .= " " . $start->get(IL_CAL_DATE) . " 1$char";
462  break;
463  case self::CAL_PRESENTATION_MONTH:
464  $year_month = $this->seed->get(IL_CAL_FKT_DATE, 'Y-m', 'UTC');
465  $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
466  $bucket_title .= " " . $year_month . " 1" . $char;
467  break;
468  case self::CAL_PRESENTATION_AGENDA_LIST:
469  $bucket_title .= " " . $this->seed->get(IL_CAL_DATE);
470  $get_list_option = ilSession::get('cal_list_view');
471  switch ($get_list_option) {
473  break;
475  $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
476  $bucket_title .= " 1$char";
477  break;
479  $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
480  $bucket_title .= " 6$char";
481  break;
483  default:
484  $char = strtolower(mb_substr($this->lng->txt("week"), 0, 1));
485  $bucket_title .= " 1$char";
486  break;
487  }
488  }
489 
490  return $bucket_title;
491  }
static _getInstanceByUserId($a_user_id)
get singleton instance
static get($a_var)
Get a value.
static _buildWeekDayList($a_day, $a_weekstart)
build week day list
user()
Definition: user.php:4
$start
Definition: bench.php:8
const IL_CAL_FKT_DATE
const IL_CAL_DATE
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getConsultationHoursUserId()

ilCalendarViewGUI::getConsultationHoursUserId ( )

Definition at line 99 of file class.ilCalendarViewGUI.php.

References $ch_user_id.

Referenced by getAppointmentShyButton().

100  {
101  return $this->ch_user_id;
102  }
+ Here is the caller graph for this function:

◆ getContentByPlugins()

ilCalendarViewGUI::getContentByPlugins (   $a_cal_entry,
  $a_start_date,
  $a_content,
  $a_tpl 
)
Parameters
$a_cal_entry
$a_start_date
$a_content
$a_tplneeded to adding elements in the template like extra content inside the event container
Returns
string

Definition at line 361 of file class.ilCalendarViewGUI.php.

References $a_content, getActivePlugins(), and getAppointmentShyButton().

Referenced by ilCalendarWeekGUI\showAppointment(), ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarWeekGUI\showFulldayAppointment(), and ilCalendarDayGUI\showFulldayAppointment().

362  {
363  $content = $a_content;
364 
365  //"capg" is the plugin slot id for AppointmentCustomGrid
366  foreach ($this->getActivePlugins("capg") as $plugin) {
367  $plugin->setAppointment($a_cal_entry, new ilDateTime($a_start_date));
368 
369  if ($new_title = $plugin->editShyButtonTitle()) {
370  $a_tpl->setVariable('EVENT_CONTENT', $this->getAppointmentShyButton($a_cal_entry, $a_start_date, $new_title));
371  }
372 
373  if ($glyph = $plugin->addGlyph()) {
374  $a_tpl->setVariable('EXTRA_GLYPH_BY_PLUGIN', $glyph);
375  }
376 
377  if ($more_content = $plugin->addExtraContent()) {
378  $a_tpl->setVariable('EXTRA_CONTENT_BY_PLUGIN', $more_content);
379  }
380 
381  $a_tpl->parseCurrentBlock();
382  $html_content = $a_tpl->get();
383 
384  if ($new_content = $plugin->replaceContent($html_content)) {
385  $content = $new_content;
386  }
387  }
388  if ($content == $a_content) {
389  return false;
390  }
391 
392  return $content;
393  }
getAppointmentShyButton($a_calendar_entry, $a_dstart, $a_title_forced="")
$a_content
Definition: workflow.php:93
Date and time handling
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentApp()

ilCalendarViewGUI::getCurrentApp ( )

Get app for id.

Parameters

Definition at line 142 of file class.ilCalendarViewGUI.php.

References $_GET, $events, and getEvents().

Referenced by ilCalendarMonthGUI\executeCommand(), ilCalendarWeekGUI\executeCommand(), ilCalendarDayGUI\executeCommand(), and ilCalendarAgendaListGUI\executeCommand().

143  {
144  // @todo: this needs optimization
145  $events = $this->getEvents();
146  foreach ($events as $item) {
147  if ($item["event"]->getEntryId() == (int) $_GET["app_id"]) {
148  return $item;
149  }
150  }
151  return null;
152  }
$_GET["client_id"]
if($argc< 2) $events
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getDatesForItem()

ilCalendarViewGUI::getDatesForItem (   $item)

Get start/end date for item.

Parameters
array$itemitem
Returns
array

Definition at line 234 of file class.ilCalendarViewGUI.php.

References $end, $start, and IL_CAL_UNIX.

Referenced by getModalForApp().

235  {
236  $start = $item["dstart"];
237  $end = $item["dend"];
238  if ($item["fullday"]) {
240  $end = new ilDate($end, IL_CAL_UNIX);
241  } else {
244  }
245  return array("start" => $start, "end" => $end);
246  }
const IL_CAL_UNIX
$start
Definition: bench.php:8
Class for single dates.
Date and time handling
+ Here is the caller graph for this function:

◆ getEvents()

ilCalendarViewGUI::getEvents ( )

Get events.

Todo:
public or protected
Parameters

Definition at line 160 of file class.ilCalendarViewGUI.php.

References $seed, $user, ilCalendarAgendaListGUI\getPeriod(), IL_CAL_DATE, IL_CAL_DAY, IL_CAL_MONTH, IL_CAL_WEEK, ilCalendarAgendaListGUI\PERIOD_DAY, ilCalendarAgendaListGUI\PERIOD_HALF_YEAR, ilCalendarAgendaListGUI\PERIOD_MONTH, ilCalendarAgendaListGUI\PERIOD_WEEK, ilCalendarSchedule\TYPE_DAY, ilCalendarSchedule\TYPE_HALF_YEAR, ilCalendarSchedule\TYPE_MONTH, ilCalendarSchedule\TYPE_WEEK, and user().

Referenced by countEventsInView(), downloadFiles(), getCurrentApp(), ilCalendarAgendaListGUI\getHTML(), and getModalForApp().

161  {
162  $user = $this->user->getId();
163 
164  switch ($this->presentation_type) {
165  case self::CAL_PRESENTATION_AGENDA_LIST:
166 
167  //if($this->period_end_day == "")
168  //{
169  $this->period = ilCalendarAgendaListGUI::getPeriod();
170 
171  $end_date = clone $this->seed;
172  switch ($this->period) {
174  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_DAY, $user, true);
175  $end_date->increment(IL_CAL_DAY, 1);
176  break;
177 
179  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_WEEK, $user, true);
180  $end_date->increment(IL_CAL_WEEK, 1);
181  break;
182 
184  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_MONTH, $user, true);
185  $end_date->increment(IL_CAL_MONTH, 1);
186  break;
187 
189  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_HALF_YEAR, $user, true);
190  $end_date->increment(IL_CAL_MONTH, 6);
191  break;
192  default:
193  // default is week ?!
194  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_WEEK, $user, true);
195  $end_date->increment(IL_CAL_WEEK, 1);
196  break;
197  }
198  $this->period_end_day = $end_date->get(IL_CAL_DATE);
199  $schedule->setPeriod($this->seed, $end_date);
200 
201  //}
202  /*else
203  {
204  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_PD_UPCOMING);
205  }*/
206 
207  break;
208  case self::CAL_PRESENTATION_DAY:
209  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_DAY, $user, true);
210  break;
211  case self::CAL_PRESENTATION_WEEK:
212  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_WEEK, $user, true);
213  break;
214  case self::CAL_PRESENTATION_MONTH:
215  // if we put the user and true in the call method we will get only events and
216  // files from the current month. Not from 6 days before and after.
217  $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_MONTH);
218  break;
219  }
220 
221  $schedule->addSubitemCalendars(true);
222  $schedule->calculate();
223  $ev = $schedule->getScheduledEvents();
224  return $ev;
225  }
const IL_CAL_MONTH
const IL_CAL_WEEK
user()
Definition: user.php:4
const IL_CAL_DAY
static getPeriod()
needed in CalendarInboxGUI to get events using a proper period.
const IL_CAL_DATE
Represents a list of calendar appointments (including recurring events) for a specific user in a give...
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getModalForApp()

ilCalendarViewGUI::getModalForApp ( )

Get modal for appointment (see similar code in ilCalendarBlockGUI)

Definition at line 251 of file class.ilCalendarViewGUI.php.

References $_GET, $ctrl, $events, $f, $r, $ui_factory, $ui_renderer, ilCalendarAppointmentPresentationGUI\_getInstance(), exit, ilDatePresentation\formatPeriod(), getDatesForItem(), getEvents(), and getModalTitleByPlugins().

252  {
255  $ctrl = $this->ctrl;
256 
257  // set return class
258  $this->ctrl->setReturn($this, '');
259 
260  // @todo: this needs optimization
261  $events = $this->getEvents();
262 
263  //item => array containing ilcalendary object, dstart of the event , dend etc.
264  foreach ($events as $item) {
265  if ($item["event"]->getEntryId() == (int) $_GET["app_id"] && $item['dstart'] == (int) $_GET['dt']) {
266  $dates = $this->getDatesForItem($item);
267  // content of modal
268  include_once("./Services/Calendar/classes/class.ilCalendarAppointmentPresentationGUI.php");
269  $next_gui = ilCalendarAppointmentPresentationGUI::_getInstance($this->seed, $item);
270  $content = $ctrl->getHTML($next_gui);
271 
272  //plugins can change the modal title.
273 
274  $modal_title = ilDatePresentation::formatPeriod($dates["start"], $dates["end"]);
275  $modal_title = $this->getModalTitleByPlugins($modal_title);
276  $modal = $f->modal()->roundtrip($modal_title, $f->legacy($content))->withCancelButtonLabel("close");
277 
278  echo $r->renderAsync($modal);
279  }
280  }
281  exit();
282  }
getModalTitleByPlugins($a_current_title)
$_GET["client_id"]
static _getInstance(ilDate $seed, $a_app)
get singleton instance
if($argc< 2) $events
$r
Definition: example_031.php:79
exit
Definition: backend.php:16
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.
getDatesForItem($item)
Get start/end date for item.
+ Here is the call graph for this function:

◆ getModalTitleByPlugins()

ilCalendarViewGUI::getModalTitleByPlugins (   $a_current_title)

Definition at line 343 of file class.ilCalendarViewGUI.php.

References getActivePlugins().

Referenced by getModalForApp().

344  {
345  $modal_title = $a_current_title;
346  //demo of plugin execution.
347  //"capm" is the plugin slot id for Appointment presentations (modals)
348  foreach ($this->getActivePlugins("capm") as $plugin) {
349  $modal_title = ($new_title = $plugin->editModalTitle($a_current_title))? $new_title : $a_current_title;
350  }
351  return $modal_title;
352  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initialize()

ilCalendarViewGUI::initialize (   $a_calendar_presentation_type)

View initialization.

Parameters
integer$a_calendar_presentation_type

Definition at line 112 of file class.ilCalendarViewGUI.php.

References $DIC, $GLOBALS, iljQueryUtil\initjQuery(), and user().

Referenced by __construct().

113  {
114  global $DIC;
115  $this->ui_factory = $DIC->ui()->factory();
116  $this->ui_renderer = $DIC->ui()->renderer();
117  $this->ui = $DIC->ui();
118  $this->ctrl = $DIC->ctrl();
119  $this->lng = $DIC->language();
120  $this->user = $DIC->user();
121  $this->tabs_gui = $DIC->tabs();
122  $this->tpl = $DIC["tpl"];
123  $this->toolbar = $DIC->toolbar();
124  $this->presentation_type = $a_calendar_presentation_type;
125  $this->logger = $GLOBALS['DIC']->logger()->cal();
126  //by default "download files" button is not displayed.
127  $this->view_with_appointments = false;
128 
129  if ($this->presentation_type == self::CAL_PRESENTATION_DAY ||
130  $this->presentation_type == self::CAL_PRESENTATION_WEEK) {
131  iljQueryUtil::initjQuery($this->tpl);
132  $this->tpl->addJavaScript('./Services/Calendar/js/calendar_appointment.js');
133  }
134  }
global $DIC
Definition: saml.php:7
user()
Definition: user.php:4
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setConsulationHoursUserId()

ilCalendarViewGUI::setConsulationHoursUserId (   $a_user_id)

Definition at line 91 of file class.ilCalendarViewGUI.php.

92  {
93  $this->ch_user_id = $a_user_id;
94  }

Field Documentation

◆ $ch_user_id

ilCalendarViewGUI::$ch_user_id = 0
protected

Definition at line 75 of file class.ilCalendarViewGUI.php.

Referenced by getConsultationHoursUserId().

◆ $ctrl

ilCalendarViewGUI::$ctrl
protected

Definition at line 30 of file class.ilCalendarViewGUI.php.

Referenced by addToolbarActions(), and getModalForApp().

◆ $lng

ilCalendarViewGUI::$lng
protected

Definition at line 60 of file class.ilCalendarViewGUI.php.

Referenced by addToolbarActions().

◆ $logger

ilCalendarViewGUI::$logger
protected

Definition at line 45 of file class.ilCalendarViewGUI.php.

◆ $presentation_type

ilCalendarViewGUI::$presentation_type
protected

Definition at line 35 of file class.ilCalendarViewGUI.php.

Referenced by __construct().

◆ $seed

ilCalendarViewGUI::$seed
protected

◆ $toolbar

ilCalendarViewGUI::$toolbar
protected

Definition at line 40 of file class.ilCalendarViewGUI.php.

Referenced by addToolbarActions().

◆ $ui

ilCalendarViewGUI::$ui
protected

Definition at line 50 of file class.ilCalendarViewGUI.php.

◆ $ui_factory

◆ $ui_renderer

ilCalendarViewGUI::$ui_renderer
protected

◆ $user

ilCalendarViewGUI::$user
protected

Definition at line 65 of file class.ilCalendarViewGUI.php.

Referenced by getEvents().

◆ $view_with_appointments

ilCalendarViewGUI::$view_with_appointments
protected

Definition at line 55 of file class.ilCalendarViewGUI.php.

◆ CAL_PRESENTATION_AGENDA_LIST

const ilCalendarViewGUI::CAL_PRESENTATION_AGENDA_LIST = 9

◆ CAL_PRESENTATION_DAY

const ilCalendarViewGUI::CAL_PRESENTATION_DAY = 1

Definition at line 12 of file class.ilCalendarViewGUI.php.

Referenced by ilCalendarDayGUI\__construct().

◆ CAL_PRESENTATION_MONTH

const ilCalendarViewGUI::CAL_PRESENTATION_MONTH = 3

Definition at line 14 of file class.ilCalendarViewGUI.php.

Referenced by ilCalendarMonthGUI\__construct().

◆ CAL_PRESENTATION_WEEK

const ilCalendarViewGUI::CAL_PRESENTATION_WEEK = 2

Definition at line 13 of file class.ilCalendarViewGUI.php.

Referenced by ilCalendarWeekGUI\__construct().


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