ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilCalendarSettings Class Reference

Stores all calendar relevant settings. More...

+ Collaboration diagram for ilCalendarSettings:

Public Member Functions

 useCache ($a_status)
 Enable cache. More...
 
 isCacheUsed ()
 Check if cache is used. More...
 
 setCacheMinutes ($a_min)
 Set time of cache storage. More...
 
 getCacheMinutes ()
 Get cache minutes. More...
 
 setEnabled ($a_enabled)
 set enabled More...
 
 isEnabled ()
 is calendar enabled More...
 
 setDefaultWeekStart ($a_start)
 set week start More...
 
 getDefaultWeekStart ()
 get default week start More...
 
 setDefaultTimeZone ($a_zone)
 set default timezone More...
 
 getDefaultTimeZone ()
 get derfault time zone More...
 
 setDefaultDateFormat ($a_format)
 set default date format More...
 
 getDefaultDateFormat ()
 get default date format More...
 
 setDefaultTimeFormat ($a_format)
 set default time format More...
 
 getDefaultTimeFormat ()
 get default time format More...
 
 getDefaultDayStart ()
 Get default end of day. More...
 
 setDefaultDayStart ($a_start)
 Set default start of day. More...
 
 getDefaultDayEnd ()
 Get default end of day. More...
 
 setDefaultDayEnd ($a_end)
 set default end of day More...
 
 areConsultationHoursEnabled ()
 Check if consultation hours are enabled. More...
 
 enableConsultationHours ($a_status)
 En/Disable consultation hours. More...
 
 getCalendarSettingsId ()
 Get calendar settings id (Used for permission checks) More...
 
 setEnableGroupMilestones ($a_enablegroupmilestones)
 Set Enable milestone planning feature for groups. More...
 
 getEnableGroupMilestones ()
 Get Enable milestone planning feature for groups. More...
 
 isSynchronisationCacheEnabled ()
 Check if cache is active for calendar synchronisation. More...
 
 enableSynchronisationCache ($a_status)
 En/Disable synchronisation cache. More...
 
 setSynchronisationCacheMinutes ($a_min)
 Set synchronisation cache minutes. More...
 
 getSynchronisationCacheMinutes ()
 get synchronisation cache minutes More...
 
 isNotificationEnabled ()
 Course group notification enabled. More...
 
 enableNotification ($a_status)
 Enable course group notification. More...
 
 isUserNotificationEnabled ()
 
 enableUserNotification ($a_not)
 
 enableCGRegistration ($a_status)
 Enable optional registration for courses and groups. More...
 
 isCGRegistrationEnabled ()
 
 enableCourseCalendar ($a_stat)
 
 isCourseCalendarEnabled ()
 
 enableGroupCalendar ($a_stat)
 
 isGroupCalendarEnabled ()
 
 enableWebCalSync ($a_stat)
 
 isWebCalSyncEnabled ()
 
 setWebCalSyncHours ($a_hours)
 
 getWebCalSyncHours ()
 
 setShowWeeks ($a_val)
 Set show weeks. More...
 
 getShowWeeks ()
 Get show weeks. More...
 
 enableBatchFileDownloads ($a_stat)
 
 isBatchFileDownloadsEnabled ()
 
 save ()
 save More...
 

Static Public Member Functions

static _getInstance ()
 get singleton instance More...
 
static lookupCalendarActivated ($a_obj_id)
 

Data Fields

const WEEK_START_MONDAY = 1
 
const WEEK_START_SUNDAY = 0
 
const DEFAULT_DAY_START = 8
 
const DEFAULT_DAY_END = 19
 
const DATE_FORMAT_DMY = 1
 
const DATE_FORMAT_YMD = 2
 
const DATE_FORMAT_MDY = 3
 
const TIME_FORMAT_24 = 1
 
const TIME_FORMAT_12 = 2
 
const DEFAULT_CACHE_MINUTES = 0
 
const DEFAULT_SYNC_CACHE_MINUTES = 10
 
const DEFAULT_SHOW_WEEKS = true
 

Private Member Functions

 __construct ()
 singleton contructor More...
 
 read ()
 Read settings. More...
 
 readCalendarSettingsId ()
 Read ref_id of calendar settings. More...
 
 initStorage ()
 Init storage class (ilSetting) @access private. More...
 

Private Attributes

 $db = null
 
 $storage = null
 
 $timezone = null
 
 $time_format = null
 
 $week_start = 0
 
 $day_start = null
 
 $day_end = null
 
 $enabled = false
 
 $cal_settings_id = 0
 
 $consultation_hours = false
 
 $cache_enabled = true
 
 $cache_minutes = 1
 
 $sync_cache_enabled = true
 
 $sync_cache_minutes = 10
 
 $notification = false
 
 $notification_user = false
 
 $cg_registration = false
 
 $course_cal_enabled = true
 
 $group_cal_enabled = true
 
 $webcal_sync = false
 
 $webcal_sync_hours = 2
 
 $show_weeks = false
 
 $batch_file_downloads = false
 

Static Private Attributes

static $instance = null
 

Detailed Description

Stores all calendar relevant settings.

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

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

Constructor & Destructor Documentation

◆ __construct()

ilCalendarSettings::__construct ( )
private

singleton contructor

@access private

Definition at line 95 of file class.ilCalendarSettings.php.

96 {
97 global $ilDB;
98
99 $this->db = $ilDB;
100
101 $this->initStorage();
102 $this->read();
103 $this->readCalendarSettingsId();
104 }
readCalendarSettingsId()
Read ref_id of calendar settings.
initStorage()
Init storage class (ilSetting) @access private.
global $ilDB

References $ilDB, initStorage(), read(), and readCalendarSettingsId().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilCalendarSettings::_getInstance ( )
static

get singleton instance

@access public

Returns
ilCalendarSettings
ilCalendarSettings

Definition at line 114 of file class.ilCalendarSettings.php.

115 {
116 if (self::$instance) {
117 return self::$instance;
118 }
119 return self::$instance = new ilCalendarSettings();
120 }
Stores all calendar relevant settings.

References $instance.

Referenced by ilCalendarUserSettings\__construct(), ilCalendarBlockGUI\__construct(), ilCalendarCache\__construct(), ilCalendarUserSettingsGUI\__construct(), ilCalendarAppointmentPanelGUI\__construct(), ilCalendarAppointmentPresentationGUI\__construct(), ilCalendarViewGUI\addToolbarActions(), ilAppointmentPresentationCourseGUI\collectPropertiesAndActions(), ilAppointmentPresentationGroupGUI\collectPropertiesAndActions(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilCalendarPresentationGUI\executeCommand(), ilAppointmentBaseFileHandler\getCatInfo(), ilObjUser\getDateFormat(), ilAppointmentPresentationGUI\getHTML(), ilUserUtil\getPossibleStartingPoints(), ilObjUser\getTimeFormat(), ilObjUser\getTimeZone(), ilPortfolioPageConfig\init(), ilObjCalendarSettingsGUI\initCalendarSettings(), ilCalendarAppointmentGUI\initForm(), ilCalendarCategoryGUI\initFormCategory(), ilObjectServiceSettingsGUI\initServiceSettingsForm(), ilColumnGUI\isGloballyActivated(), ilCalendarAuthenticationToken\isIcalExpired(), lookupCalendarActivated(), ilCalendarPresentationGUI\prepareOutput(), ilCalendarCache\readEntry(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), ilCalendarCategories\readReposCalendars(), ilCalendarCategories\readSelectedCategories(), ilMainMenuGUI\renderDropDown(), ilMainMenuGUI\renderEntry(), ilCalendarAppointmentGUI\save(), ilObjPersonalDesktopSettingsGUI\saveSettings(), ilCalendarWeekGUI\show(), ilCalendarCache\storeEntry(), ilCalendarCache\storeUnlimitedEntry(), ilCalendarPresentationGUI\synchroniseExternalCalendars(), ilCalendarAppointmentGUI\update(), ilObjectServiceSettingsGUI\updateServiceSettingsForm(), and ilObjectServiceSettingsGUI\updateToolSettings().

+ Here is the caller graph for this function:

◆ areConsultationHoursEnabled()

ilCalendarSettings::areConsultationHoursEnabled ( )

Check if consultation hours are enabled.

Returns

Definition at line 345 of file class.ilCalendarSettings.php.

References $consultation_hours.

Referenced by save().

+ Here is the caller graph for this function:

◆ enableBatchFileDownloads()

ilCalendarSettings::enableBatchFileDownloads (   $a_stat)

Definition at line 533 of file class.ilCalendarSettings.php.

534 {
535 $this->batch_file_downloads = $a_stat;
536 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableCGRegistration()

ilCalendarSettings::enableCGRegistration (   $a_status)

Enable optional registration for courses and groups.

Parameters
bool$a_status
Returns

Definition at line 463 of file class.ilCalendarSettings.php.

464 {
465 $this->cg_registration = $a_status;
466 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableConsultationHours()

ilCalendarSettings::enableConsultationHours (   $a_status)

En/Disable consultation hours.

Returns

Definition at line 354 of file class.ilCalendarSettings.php.

355 {
356 $this->consultation_hours = $a_status;
357 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableCourseCalendar()

ilCalendarSettings::enableCourseCalendar (   $a_stat)

Definition at line 473 of file class.ilCalendarSettings.php.

474 {
475 $this->course_cal_enabled = $a_stat;
476 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableGroupCalendar()

ilCalendarSettings::enableGroupCalendar (   $a_stat)

Definition at line 483 of file class.ilCalendarSettings.php.

484 {
485 $this->group_cal_enabled = $a_stat;
486 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableNotification()

ilCalendarSettings::enableNotification (   $a_status)

Enable course group notification.

Parameters
bool$a_status
Returns

Definition at line 443 of file class.ilCalendarSettings.php.

444 {
445 $this->notification = $a_status;
446 }
notification()
Definition: notification.php:2

References notification().

Referenced by read().

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

◆ enableSynchronisationCache()

ilCalendarSettings::enableSynchronisationCache (   $a_status)

En/Disable synchronisation cache.

Returns

Definition at line 405 of file class.ilCalendarSettings.php.

406 {
407 $this->sync_cache_enabled = $a_status;
408 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableUserNotification()

ilCalendarSettings::enableUserNotification (   $a_not)

Definition at line 453 of file class.ilCalendarSettings.php.

454 {
455 $this->notification_user = $a_not;
456 }

Referenced by read().

+ Here is the caller graph for this function:

◆ enableWebCalSync()

ilCalendarSettings::enableWebCalSync (   $a_stat)

Definition at line 493 of file class.ilCalendarSettings.php.

494 {
495 $this->webcal_sync = $a_stat;
496 }

Referenced by read().

+ Here is the caller graph for this function:

◆ getCacheMinutes()

ilCalendarSettings::getCacheMinutes ( )

Get cache minutes.

Returns

Definition at line 188 of file class.ilCalendarSettings.php.

189 {
190 return (int) $this->cache_minutes;
191 }

References $cache_minutes.

Referenced by save().

+ Here is the caller graph for this function:

◆ getCalendarSettingsId()

ilCalendarSettings::getCalendarSettingsId ( )

Get calendar settings id (Used for permission checks)

@access public

Returns

Definition at line 367 of file class.ilCalendarSettings.php.

References $cal_settings_id.

◆ getDefaultDateFormat()

ilCalendarSettings::getDefaultDateFormat ( )

get default date format

@access public

Returns
int date format

Definition at line 275 of file class.ilCalendarSettings.php.

276 {
277 return $this->date_format;
278 }

Referenced by save().

+ Here is the caller graph for this function:

◆ getDefaultDayEnd()

ilCalendarSettings::getDefaultDayEnd ( )

Get default end of day.

Returns

Definition at line 326 of file class.ilCalendarSettings.php.

References $day_end.

Referenced by save().

+ Here is the caller graph for this function:

◆ getDefaultDayStart()

ilCalendarSettings::getDefaultDayStart ( )

Get default end of day.

Returns

Definition at line 307 of file class.ilCalendarSettings.php.

References $day_start.

Referenced by save().

+ Here is the caller graph for this function:

◆ getDefaultTimeFormat()

ilCalendarSettings::getDefaultTimeFormat ( )

get default time format

@access public

Returns
int time format

Definition at line 298 of file class.ilCalendarSettings.php.

References $time_format.

Referenced by save().

+ Here is the caller graph for this function:

◆ getDefaultTimeZone()

ilCalendarSettings::getDefaultTimeZone ( )

get derfault time zone

@access public

Definition at line 252 of file class.ilCalendarSettings.php.

References $timezone.

Referenced by save().

+ Here is the caller graph for this function:

◆ getDefaultWeekStart()

ilCalendarSettings::getDefaultWeekStart ( )

get default week start

@access public

Definition at line 232 of file class.ilCalendarSettings.php.

References $week_start.

Referenced by save().

+ Here is the caller graph for this function:

◆ getEnableGroupMilestones()

ilCalendarSettings::getEnableGroupMilestones ( )

Get Enable milestone planning feature for groups.

Returns
boolean Enable milestone planning feature for groups

Definition at line 387 of file class.ilCalendarSettings.php.

388 {
389 return $this->enablegroupmilestones;
390 }

Referenced by save().

+ Here is the caller graph for this function:

◆ getShowWeeks()

ilCalendarSettings::getShowWeeks ( )

Get show weeks.

Returns
bool show weeks

Definition at line 528 of file class.ilCalendarSettings.php.

References $show_weeks.

Referenced by save().

+ Here is the caller graph for this function:

◆ getSynchronisationCacheMinutes()

ilCalendarSettings::getSynchronisationCacheMinutes ( )

get synchronisation cache minutes

Returns

Definition at line 424 of file class.ilCalendarSettings.php.

References $sync_cache_minutes.

Referenced by save().

+ Here is the caller graph for this function:

◆ getWebCalSyncHours()

ilCalendarSettings::getWebCalSyncHours ( )

Definition at line 508 of file class.ilCalendarSettings.php.

References $webcal_sync_hours.

Referenced by save().

+ Here is the caller graph for this function:

◆ initStorage()

ilCalendarSettings::initStorage ( )
private

Init storage class (ilSetting) @access private.

Definition at line 632 of file class.ilCalendarSettings.php.

633 {
634 include_once('./Services/Administration/classes/class.ilSetting.php');
635 $this->storage = new ilSetting('calendar');
636 }
ILIAS Setting Class.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ isBatchFileDownloadsEnabled()

ilCalendarSettings::isBatchFileDownloadsEnabled ( )

Definition at line 538 of file class.ilCalendarSettings.php.

References $batch_file_downloads.

Referenced by save().

+ Here is the caller graph for this function:

◆ isCacheUsed()

ilCalendarSettings::isCacheUsed ( )

Check if cache is used.

Returns

Definition at line 169 of file class.ilCalendarSettings.php.

References $cache_enabled.

Referenced by save().

+ Here is the caller graph for this function:

◆ isCGRegistrationEnabled()

ilCalendarSettings::isCGRegistrationEnabled ( )

Definition at line 468 of file class.ilCalendarSettings.php.

References $cg_registration.

Referenced by save().

+ Here is the caller graph for this function:

◆ isCourseCalendarEnabled()

ilCalendarSettings::isCourseCalendarEnabled ( )

Definition at line 478 of file class.ilCalendarSettings.php.

References $course_cal_enabled.

Referenced by save().

+ Here is the caller graph for this function:

◆ isEnabled()

ilCalendarSettings::isEnabled ( )

is calendar enabled

@access public

Definition at line 210 of file class.ilCalendarSettings.php.

211 {
212 return (bool) $this->enabled;
213 }

References $enabled.

Referenced by lookupCalendarActivated(), and save().

+ Here is the caller graph for this function:

◆ isGroupCalendarEnabled()

ilCalendarSettings::isGroupCalendarEnabled ( )

Definition at line 488 of file class.ilCalendarSettings.php.

References $group_cal_enabled.

Referenced by save().

+ Here is the caller graph for this function:

◆ isNotificationEnabled()

ilCalendarSettings::isNotificationEnabled ( )

Course group notification enabled.

Returns

Definition at line 433 of file class.ilCalendarSettings.php.

434 {
435 return (bool) $this->notification;
436 }

References $notification.

Referenced by save().

+ Here is the caller graph for this function:

◆ isSynchronisationCacheEnabled()

ilCalendarSettings::isSynchronisationCacheEnabled ( )

Check if cache is active for calendar synchronisation.

Returns

Definition at line 396 of file class.ilCalendarSettings.php.

397 {
398 return (bool) $this->sync_cache_enabled;
399 }

References $sync_cache_enabled.

Referenced by save().

+ Here is the caller graph for this function:

◆ isUserNotificationEnabled()

ilCalendarSettings::isUserNotificationEnabled ( )

Definition at line 448 of file class.ilCalendarSettings.php.

References $notification_user.

Referenced by save().

+ Here is the caller graph for this function:

◆ isWebCalSyncEnabled()

ilCalendarSettings::isWebCalSyncEnabled ( )

Definition at line 498 of file class.ilCalendarSettings.php.

References $webcal_sync.

Referenced by save().

+ Here is the caller graph for this function:

◆ lookupCalendarActivated()

static ilCalendarSettings::lookupCalendarActivated (   $a_obj_id)
static
Parameters
type$a_obj_id

Definition at line 126 of file class.ilCalendarSettings.php.

127 {
129 return false;
130 }
131 $type = ilObject::_lookupType($a_obj_id);
132 // lookup global setting
133 $gl_activated = false;
134 switch ($type) {
135 case 'crs':
136 $gl_activated = ilCalendarSettings::_getInstance()->isCourseCalendarEnabled();
137 break;
138
139 case 'grp':
140 $gl_activated = ilCalendarSettings::_getInstance()->isGroupCalendarEnabled();
141 break;
142
143 default:
144 return false;
145 }
146 // look individual object setting
147 include_once './Services/Container/classes/class.ilContainer.php';
149 $a_obj_id,
150 'cont_show_calendar',
151 $gl_activated
152 );
153 }
isEnabled()
is calendar enabled
static _getInstance()
get singleton instance
static _lookupContainerSetting($a_id, $a_keyword, $a_default_value=null)
Lookup a container setting.
static _lookupType($a_id, $a_reference=false)
lookup object type
$type

References $type, _getInstance(), ilContainer\_lookupContainerSetting(), ilObject\_lookupType(), and isEnabled().

Referenced by ilObjectServiceSettingsGUI\initServiceSettingsForm(), and ilColumnGUI\isGloballyActivated().

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

◆ read()

ilCalendarSettings::read ( )
private

Read settings.

@access private

Parameters

Definition at line 581 of file class.ilCalendarSettings.php.

582 {
583 $this->setEnabled($this->storage->get('enabled'));
584 $this->setDefaultTimeZone($this->storage->get('default_timezone', ilTimeZone::_getDefaultTimeZone()));
585 $this->setDefaultWeekStart($this->storage->get('default_week_start', self::WEEK_START_MONDAY));
586 $this->setDefaultDateFormat($this->storage->get('default_date_format', self::DATE_FORMAT_DMY));
587 $this->setDefaultTimeFormat($this->storage->get('default_time_format', self::TIME_FORMAT_24));
588 $this->setEnableGroupMilestones($this->storage->get('enable_grp_milestones'));
589 $this->setDefaultDayStart($this->storage->get('default_day_start', self::DEFAULT_DAY_START));
590 $this->setDefaultDayEnd($this->storage->get('default_day_end', self::DEFAULT_DAY_END));
591 $this->useCache($this->storage->get('cache_enabled'), $this->cache_enabled);
592 $this->setCacheMinutes($this->storage->get('cache_minutes', self::DEFAULT_CACHE_MINUTES));
593 $this->enableSynchronisationCache($this->storage->get('sync_cache_enabled'), $this->isSynchronisationCacheEnabled());
594 $this->setSynchronisationCacheMinutes($this->storage->get('sync_cache_minutes', self::DEFAULT_SYNC_CACHE_MINUTES));
595 $this->enableNotification($this->storage->get('notification', $this->isNotificationEnabled()));
596 $this->enableConsultationHours($this->storage->get('consultation_hours', $this->areConsultationHoursEnabled()));
597 $this->enableCGRegistration($this->storage->get('cg_registration', $this->isCGRegistrationEnabled()));
598 $this->enableCourseCalendar($this->storage->get('course_cal', $this->isCourseCalendarEnabled()));
599 $this->enableGroupCalendar($this->storage->get('group_cal', $this->isGroupCalendarEnabled()));
600 $this->enableUserNotification($this->storage->get('notification_user', $this->isUserNotificationEnabled()));
601 $this->enableWebCalSync($this->storage->get('webcal_sync', $this->isWebCalSyncEnabled()));
602 $this->setWebCalSyncHours($this->storage->get('webcal_sync_hours', $this->getWebCalSyncHours()));
603 $this->setShowWeeks($this->storage->get('show_weeks', $this->getShowWeeks()));
604 $this->enableBatchFileDownloads($this->storage->get('batch_files', $this->isBatchFileDownloadsEnabled()));
605 }
setCacheMinutes($a_min)
Set time of cache storage.
setDefaultDayEnd($a_end)
set default end of day
setDefaultDateFormat($a_format)
set default date format
setEnabled($a_enabled)
set enabled
setDefaultWeekStart($a_start)
set week start
setShowWeeks($a_val)
Set show weeks.
setDefaultDayStart($a_start)
Set default start of day.
setDefaultTimeZone($a_zone)
set default timezone
enableCGRegistration($a_status)
Enable optional registration for courses and groups.
useCache($a_status)
Enable cache.
enableConsultationHours($a_status)
En/Disable consultation hours.
setSynchronisationCacheMinutes($a_min)
Set synchronisation cache minutes.
setDefaultTimeFormat($a_format)
set default time format
enableSynchronisationCache($a_status)
En/Disable synchronisation cache.
enableNotification($a_status)
Enable course group notification.
setEnableGroupMilestones($a_enablegroupmilestones)
Set Enable milestone planning feature for groups.
static _getDefaultTimeZone()
Calculate and set default time zone.

References ilTimeZone\_getDefaultTimeZone(), enableBatchFileDownloads(), enableCGRegistration(), enableConsultationHours(), enableCourseCalendar(), enableGroupCalendar(), enableNotification(), enableSynchronisationCache(), enableUserNotification(), enableWebCalSync(), setCacheMinutes(), setDefaultDateFormat(), setDefaultDayEnd(), setDefaultDayStart(), setDefaultTimeFormat(), setDefaultTimeZone(), setDefaultWeekStart(), setEnabled(), setEnableGroupMilestones(), setShowWeeks(), setSynchronisationCacheMinutes(), setWebCalSyncHours(), and useCache().

Referenced by __construct().

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

◆ readCalendarSettingsId()

ilCalendarSettings::readCalendarSettingsId ( )
private

Read ref_id of calendar settings.

@access private

Parameters

return

Definition at line 614 of file class.ilCalendarSettings.php.

615 {
616 $query = "SELECT ref_id FROM object_reference obr " .
617 "JOIN object_data obd ON obd.obj_id = obr.obj_id " .
618 "WHERE type = 'cals'";
619
620 $set = $this->db->query($query);
621 $row = $this->db->fetchAssoc($set);
622
623 $this->cal_settings_id = $row["ref_id"];
624 return true;
625 }
$query

References $query, and $row.

Referenced by __construct().

+ Here is the caller graph for this function:

◆ save()

ilCalendarSettings::save ( )

save

@access public

Definition at line 548 of file class.ilCalendarSettings.php.

549 {
550 $this->storage->set('enabled', (int) $this->isEnabled());
551 $this->storage->set('default_timezone', $this->getDefaultTimeZone());
552 $this->storage->set('default_week_start', $this->getDefaultWeekStart());
553 $this->storage->set('default_date_format', $this->getDefaultDateFormat());
554 $this->storage->set('default_time_format', $this->getDefaultTimeFormat());
555 $this->storage->set('enable_grp_milestones', (int) $this->getEnableGroupMilestones());
556 $this->storage->set('default_day_start', (int) $this->getDefaultDayStart());
557 $this->storage->set('default_day_end', (int) $this->getDefaultDayEnd());
558 $this->storage->set('cache_minutes', (int) $this->getCacheMinutes());
559 $this->storage->set('sync_cache_enabled', (int) $this->isSynchronisationCacheEnabled());
560 $this->storage->set('sync_cache_minutes', (int) $this->getSynchronisationCacheMinutes());
561 $this->storage->set('cache_enabled', (int) $this->isCacheUsed());
562 $this->storage->set('notification', (int) $this->isNotificationEnabled());
563 $this->storage->set('consultation_hours', (int) $this->areConsultationHoursEnabled());
564 $this->storage->set('cg_registration', (int) $this->isCGRegistrationEnabled());
565 $this->storage->set('course_cal', (int) $this->isCourseCalendarEnabled());
566 $this->storage->set('group_cal', (int) $this->isGroupCalendarEnabled());
567 $this->storage->set('notification_user', (int) $this->isUserNotificationEnabled());
568 $this->storage->set('webcal_sync', (int) $this->isWebCalSyncEnabled());
569 $this->storage->set('webcal_sync_hours', (int) $this->getWebCalSyncHours());
570 $this->storage->set('show_weeks', (int) $this->getShowWeeks());
571 $this->storage->set('batch_files', (int) $this->isBatchFileDownloadsEnabled());
572 }
getDefaultTimeFormat()
get default time format
getDefaultTimeZone()
get derfault time zone
getDefaultDateFormat()
get default date format
areConsultationHoursEnabled()
Check if consultation hours are enabled.
isCacheUsed()
Check if cache is used.
getDefaultDayStart()
Get default end of day.
isSynchronisationCacheEnabled()
Check if cache is active for calendar synchronisation.
getCacheMinutes()
Get cache minutes.
isNotificationEnabled()
Course group notification enabled.
getDefaultDayEnd()
Get default end of day.
getDefaultWeekStart()
get default week start
getSynchronisationCacheMinutes()
get synchronisation cache minutes
getEnableGroupMilestones()
Get Enable milestone planning feature for groups.

References areConsultationHoursEnabled(), getCacheMinutes(), getDefaultDateFormat(), getDefaultDayEnd(), getDefaultDayStart(), getDefaultTimeFormat(), getDefaultTimeZone(), getDefaultWeekStart(), getEnableGroupMilestones(), getShowWeeks(), getSynchronisationCacheMinutes(), getWebCalSyncHours(), isBatchFileDownloadsEnabled(), isCacheUsed(), isCGRegistrationEnabled(), isCourseCalendarEnabled(), isEnabled(), isGroupCalendarEnabled(), isNotificationEnabled(), isSynchronisationCacheEnabled(), isUserNotificationEnabled(), and isWebCalSyncEnabled().

+ Here is the call graph for this function:

◆ setCacheMinutes()

ilCalendarSettings::setCacheMinutes (   $a_min)

Set time of cache storage.

Parameters
int$a_min
Returns

Definition at line 179 of file class.ilCalendarSettings.php.

180 {
181 $this->cache_minutes = $a_min;
182 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultDateFormat()

ilCalendarSettings::setDefaultDateFormat (   $a_format)

set default date format

@access public

Parameters
intdate format
Returns

Definition at line 264 of file class.ilCalendarSettings.php.

265 {
266 $this->date_format = $a_format;
267 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultDayEnd()

ilCalendarSettings::setDefaultDayEnd (   $a_end)

set default end of day

Returns
Parameters
object$a_end

Definition at line 336 of file class.ilCalendarSettings.php.

337 {
338 $this->day_end = $a_end;
339 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultDayStart()

ilCalendarSettings::setDefaultDayStart (   $a_start)

Set default start of day.

Returns
Parameters
object$a_start

Definition at line 317 of file class.ilCalendarSettings.php.

318 {
319 $this->day_start = $a_start;
320 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultTimeFormat()

ilCalendarSettings::setDefaultTimeFormat (   $a_format)

set default time format

@access public

Parameters
inttime format
Returns

Definition at line 287 of file class.ilCalendarSettings.php.

288 {
289 $this->time_format = $a_format;
290 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultTimeZone()

ilCalendarSettings::setDefaultTimeZone (   $a_zone)

set default timezone

@access public

Definition at line 242 of file class.ilCalendarSettings.php.

243 {
244 $this->timezone = $a_zone;
245 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setDefaultWeekStart()

ilCalendarSettings::setDefaultWeekStart (   $a_start)

set week start

@access public

Definition at line 221 of file class.ilCalendarSettings.php.

222 {
223 $this->week_start = $a_start;
224 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setEnabled()

ilCalendarSettings::setEnabled (   $a_enabled)

set enabled

@access public

Definition at line 199 of file class.ilCalendarSettings.php.

200 {
201 $this->enabled = $a_enabled;
202 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setEnableGroupMilestones()

ilCalendarSettings::setEnableGroupMilestones (   $a_enablegroupmilestones)

Set Enable milestone planning feature for groups.

Parameters
boolean$a_enablegroupmilestonesEnable milestone planning feature for groups

Definition at line 377 of file class.ilCalendarSettings.php.

378 {
379 $this->enablegroupmilestones = $a_enablegroupmilestones;
380 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setShowWeeks()

ilCalendarSettings::setShowWeeks (   $a_val)

Set show weeks.

Parameters
bool$a_valshow weeks

Definition at line 518 of file class.ilCalendarSettings.php.

519 {
520 $this->show_weeks = $a_val;
521 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setSynchronisationCacheMinutes()

ilCalendarSettings::setSynchronisationCacheMinutes (   $a_min)

Set synchronisation cache minutes.

Parameters
object$a_min
Returns

Definition at line 415 of file class.ilCalendarSettings.php.

416 {
417 $this->sync_cache_minutes = $a_min;
418 }

Referenced by read().

+ Here is the caller graph for this function:

◆ setWebCalSyncHours()

ilCalendarSettings::setWebCalSyncHours (   $a_hours)

Definition at line 503 of file class.ilCalendarSettings.php.

504 {
505 $this->webcal_sync_hours = $a_hours;
506 }

Referenced by read().

+ Here is the caller graph for this function:

◆ useCache()

ilCalendarSettings::useCache (   $a_status)

Enable cache.

Parameters
object$a_status
Returns

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

161 {
162 $this->cache_enabled = $a_status;
163 }

Referenced by read().

+ Here is the caller graph for this function:

Field Documentation

◆ $batch_file_downloads

ilCalendarSettings::$batch_file_downloads = false
private

Definition at line 87 of file class.ilCalendarSettings.php.

Referenced by isBatchFileDownloadsEnabled().

◆ $cache_enabled

ilCalendarSettings::$cache_enabled = true
private

Definition at line 69 of file class.ilCalendarSettings.php.

Referenced by isCacheUsed().

◆ $cache_minutes

ilCalendarSettings::$cache_minutes = 1
private

Definition at line 70 of file class.ilCalendarSettings.php.

Referenced by getCacheMinutes().

◆ $cal_settings_id

ilCalendarSettings::$cal_settings_id = 0
private

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

Referenced by getCalendarSettingsId().

◆ $cg_registration

ilCalendarSettings::$cg_registration = false
private

Definition at line 78 of file class.ilCalendarSettings.php.

Referenced by isCGRegistrationEnabled().

◆ $consultation_hours

ilCalendarSettings::$consultation_hours = false
private

Definition at line 67 of file class.ilCalendarSettings.php.

Referenced by areConsultationHoursEnabled().

◆ $course_cal_enabled

ilCalendarSettings::$course_cal_enabled = true
private

Definition at line 80 of file class.ilCalendarSettings.php.

Referenced by isCourseCalendarEnabled().

◆ $day_end

ilCalendarSettings::$day_end = null
private

Definition at line 63 of file class.ilCalendarSettings.php.

Referenced by getDefaultDayEnd().

◆ $day_start

ilCalendarSettings::$day_start = null
private

Definition at line 62 of file class.ilCalendarSettings.php.

Referenced by getDefaultDayStart().

◆ $db

ilCalendarSettings::$db = null
private

Definition at line 57 of file class.ilCalendarSettings.php.

◆ $enabled

ilCalendarSettings::$enabled = false
private

Definition at line 64 of file class.ilCalendarSettings.php.

Referenced by isEnabled().

◆ $group_cal_enabled

ilCalendarSettings::$group_cal_enabled = true
private

Definition at line 81 of file class.ilCalendarSettings.php.

Referenced by isGroupCalendarEnabled().

◆ $instance

ilCalendarSettings::$instance = null
staticprivate

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

Referenced by _getInstance().

◆ $notification

ilCalendarSettings::$notification = false
private

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

Referenced by isNotificationEnabled().

◆ $notification_user

ilCalendarSettings::$notification_user = false
private

Definition at line 76 of file class.ilCalendarSettings.php.

Referenced by isUserNotificationEnabled().

◆ $show_weeks

ilCalendarSettings::$show_weeks = false
private

Definition at line 85 of file class.ilCalendarSettings.php.

Referenced by getShowWeeks().

◆ $storage

ilCalendarSettings::$storage = null
private

Definition at line 58 of file class.ilCalendarSettings.php.

◆ $sync_cache_enabled

ilCalendarSettings::$sync_cache_enabled = true
private

Definition at line 72 of file class.ilCalendarSettings.php.

Referenced by isSynchronisationCacheEnabled().

◆ $sync_cache_minutes

ilCalendarSettings::$sync_cache_minutes = 10
private

Definition at line 73 of file class.ilCalendarSettings.php.

Referenced by getSynchronisationCacheMinutes().

◆ $time_format

ilCalendarSettings::$time_format = null
private

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

Referenced by getDefaultTimeFormat().

◆ $timezone

ilCalendarSettings::$timezone = null
private

Definition at line 59 of file class.ilCalendarSettings.php.

Referenced by getDefaultTimeZone().

◆ $webcal_sync

ilCalendarSettings::$webcal_sync = false
private

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

Referenced by isWebCalSyncEnabled().

◆ $webcal_sync_hours

ilCalendarSettings::$webcal_sync_hours = 2
private

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

Referenced by getWebCalSyncHours().

◆ $week_start

ilCalendarSettings::$week_start = 0
private

Definition at line 61 of file class.ilCalendarSettings.php.

Referenced by getDefaultWeekStart().

◆ DATE_FORMAT_DMY

◆ DATE_FORMAT_MDY

◆ DATE_FORMAT_YMD

◆ DEFAULT_CACHE_MINUTES

const ilCalendarSettings::DEFAULT_CACHE_MINUTES = 0

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

◆ DEFAULT_DAY_END

const ilCalendarSettings::DEFAULT_DAY_END = 19

Definition at line 41 of file class.ilCalendarSettings.php.

◆ DEFAULT_DAY_START

const ilCalendarSettings::DEFAULT_DAY_START = 8

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

◆ DEFAULT_SHOW_WEEKS

const ilCalendarSettings::DEFAULT_SHOW_WEEKS = true

Definition at line 53 of file class.ilCalendarSettings.php.

◆ DEFAULT_SYNC_CACHE_MINUTES

const ilCalendarSettings::DEFAULT_SYNC_CACHE_MINUTES = 10

Definition at line 51 of file class.ilCalendarSettings.php.

◆ TIME_FORMAT_12

◆ TIME_FORMAT_24

◆ WEEK_START_MONDAY

const ilCalendarSettings::WEEK_START_MONDAY = 1

Definition at line 37 of file class.ilCalendarSettings.php.

Referenced by ilCalendarRecurrence\toICal().

◆ WEEK_START_SUNDAY

const ilCalendarSettings::WEEK_START_SUNDAY = 0

Definition at line 38 of file class.ilCalendarSettings.php.


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