ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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.

85 {
86 $this->seed = $seed;
88 }
initialize($a_calendar_presentation_type)
View initialization.

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

+ 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

return

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

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

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

+ 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 517 of file class.ilCalendarViewGUI.php.

518 {
519 $start = $this->seed;
520 $end = clone $start;
521 $get_list_option = ilCalendarAgendaListGUI::getPeriod();
522 switch ($get_list_option) {
524 //$end->increment(IL_CAL_DAY,1);
525 break;
527 $end->increment(IL_CAL_MONTH, 1);
528 break;
530 $end->increment(IL_CAL_MONTH, 6);
531 break;
533 default:
534 $end->increment(IL_CAL_DAY, 7);
535 break;
536 }
537 $events = $this->getEvents();
538 $num_events = 0;
539 foreach ($events as $event) {
540 $event_start = $event['event']->getStart()->get(IL_CAL_DATE);
541
542 if ($event_start >= $start->get(IL_CAL_DATE) && $event_start<= $end->get(IL_CAL_DATE)) {
543 $num_events++;
544 }
545 }
546 return $num_events;
547 }
const IL_CAL_DATE
const IL_CAL_MONTH
const IL_CAL_DAY
static getPeriod()
needed in CalendarInboxGUI to get events using a proper period.
$end
Definition: saml1-acs.php:18

References $end, $seed, 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().

+ 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 428 of file class.ilCalendarViewGUI.php.

429 {
430 include_once './Services/Calendar/classes/BackgroundTasks/class.ilDownloadFilesBackgroundTask.php';
431 $download_job = new ilDownloadFilesBackgroundTask($GLOBALS['DIC']->user()->getId());
432
433 $download_job->setBucketTitle($this->getBucketTitle());
434 $download_job->setEvents($this->getEvents());
435 if ($download_job->run()) {
436 ilUtil::sendSuccess($this->lng->txt('cal_download_files_started'), true);
437 }
438 $GLOBALS['DIC']->ctrl()->redirect($this);
439 }
user()
Definition: user.php:4
getBucketTitle()
get proper label to add in the background task popover
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
$GLOBALS['loaded']
Global hash that tracks already loaded includes.

References $GLOBALS, getBucketTitle(), getEvents(), ilUtil\sendSuccess(), and user().

+ Here is the call graph for this function:

◆ getActivePlugins()

ilCalendarViewGUI::getActivePlugins (   $a_slot_id)

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

324 {
325 global $ilPluginAdmin;
326
327 $res = array();
328
329 foreach ($ilPluginAdmin->getActivePluginsForSlot(IL_COMP_SERVICE, "Calendar", $a_slot_id) as $plugin_name) {
330 $res[] = $ilPluginAdmin->getPluginObject(
332 "Calendar",
333 $a_slot_id,
334 $plugin_name
335 );
336 }
337
338 return $res;
339 }
const IL_COMP_SERVICE
foreach($_POST as $key=> $value) $res

References $res, and IL_COMP_SERVICE.

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

+ 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.

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
$url

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

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

+ 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 445 of file class.ilCalendarViewGUI.php.

446 {
447 //definition of bucket titles here: 21365
448 $user_settings = ilCalendarUserSettings::_getInstanceByUserId($this->user->getId());
449 $bucket_title = $this->lng->txt("cal_calendar_download");
450
451 switch ($this->presentation_type) {
453 $bucket_title .= " " . $this->seed->get(IL_CAL_DATE);
454 break;
456 $weekday_list = ilCalendarUtil::_buildWeekDayList($this->seed, $user_settings->getWeekStart())->get();
457 $start = current($weekday_list);
458 if (function_exists('mb_substr')) {
459 $char = strtolower(mb_substr($this->lng->txt("week"), 0, 1));
460 } else {
461 $char = strtolower(substr($this->lng->txt("week"), 0, 1));
462 }
463
464 $bucket_title .= " " . $start->get(IL_CAL_DATE) . " 1$char";
465 break;
467 $year_month = $this->seed->get(IL_CAL_FKT_DATE, 'Y-m', 'UTC');
468 if (function_exists('mb_substr')) {
469 $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
470 } else {
471 $char = strtolower(substr($this->lng->txt("month"), 0, 1));
472 }
473
474 $bucket_title .= " " . $year_month . " 1" . $char;
475 break;
477 $bucket_title .= " " . $this->seed->get(IL_CAL_DATE);
478 $get_list_option = ilSession::get('cal_list_view');
479 switch ($get_list_option) {
481 break;
483 if (function_exists('mb_substr')) {
484 $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
485 } else {
486 $char = strtolower(substr($this->lng->txt("month"), 0, 1));
487 }
488 $bucket_title .= " 1$char";
489 break;
491 if (function_exists('mb_substr')) {
492 $char = strtolower(mb_substr($this->lng->txt("month"), 0, 1));
493 } else {
494 $char = strtolower(substr($this->lng->txt("month"), 0, 1));
495 }
496 $bucket_title .= " 6$char";
497 break;
499 default:
500 if (function_exists('mb_substr')) {
501 $char = strtolower(mb_substr($this->lng->txt("week"), 0, 1));
502 } else {
503 $char = strtolower(substr($this->lng->txt("week"), 0, 1));
504 }
505 $bucket_title .= " 1$char";
506 break;
507 }
508 }
509
510 return $bucket_title;
511 }
const IL_CAL_FKT_DATE
static _getInstanceByUserId($a_user_id)
get singleton instance
static _buildWeekDayList($a_day, $a_weekstart)
build week day list
static get($a_var)
Get a value.

References ilCalendarUtil\_buildWeekDayList(), ilCalendarUserSettings\_getInstanceByUserId(), CAL_PRESENTATION_AGENDA_LIST, CAL_PRESENTATION_DAY, CAL_PRESENTATION_MONTH, CAL_PRESENTATION_WEEK, 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().

+ 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().

+ 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 359 of file class.ilCalendarViewGUI.php.

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

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

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

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getCurrentApp()

ilCalendarViewGUI::getCurrentApp ( )

Get app for id.

Parameters

return

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

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 }

References $_GET, and getEvents().

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

+ 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.

235 {
236 $start = $item["dstart"];
237 $end = $item["dend"];
238 if ($item["fullday"]) {
239 $start = new ilDate($start, IL_CAL_UNIX);
240 $end = new ilDate($end, IL_CAL_UNIX);
241 } else {
242 $start = new ilDateTime($start, IL_CAL_UNIX);
244 }
245 return array("start" => $start, "end" => $end);
246 }
const IL_CAL_UNIX
Class for single dates.

References $end, and IL_CAL_UNIX.

Referenced by getModalForApp().

+ Here is the caller graph for this function:

◆ getEvents()

ilCalendarViewGUI::getEvents ( )

Get events.

Todo:
public or protected
Parameters

return

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

161 {
162 $user = $this->user->getId();
163
164 switch ($this->presentation_type) {
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;
209 $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_DAY, $user, true);
210 break;
212 $schedule = new ilCalendarSchedule($this->seed, ilCalendarSchedule::TYPE_WEEK, $user, true);
213 break;
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_WEEK
Represents a list of calendar appointments (including recurring events) for a specific user in a give...

References $seed, $user, CAL_PRESENTATION_AGENDA_LIST, CAL_PRESENTATION_DAY, CAL_PRESENTATION_MONTH, CAL_PRESENTATION_WEEK, 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().

+ 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.

252 {
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 }
static _getInstance(ilDate $seed, $a_app)
get singleton instance
getModalTitleByPlugins($a_current_title)
getDatesForItem($item)
Get start/end date for item.
static formatPeriod(ilDateTime $start, ilDateTime $end, $a_skip_starting_day=false)
Format a period of two date Shows: 14.

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

+ Here is the call graph for this function:

◆ getModalTitleByPlugins()

ilCalendarViewGUI::getModalTitleByPlugins (   $a_current_title)

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

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

References getActivePlugins().

Referenced by getModalForApp().

+ 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.

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 }
static initjQuery($a_tpl=null)
inits and adds the jQuery JS-File to the global or a passed template
global $DIC
Definition: saml.php:7

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

Referenced by __construct().

+ 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

◆ CAL_PRESENTATION_MONTH

const ilCalendarViewGUI::CAL_PRESENTATION_MONTH = 3

◆ CAL_PRESENTATION_WEEK

const ilCalendarViewGUI::CAL_PRESENTATION_WEEK = 2

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