24 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
 
  131                 $gl_activated = 
false;
 
  146                 include_once 
'./Services/Container/classes/class.ilContainer.php';
 
  149                                 'cont_show_calendar',
 
  161                 $this->cache_enabled = $a_status;
 
  180                 $this->cache_minutes = $a_min;
 
  200                 $this->enabled = $a_enabled;
 
  222                 $this->week_start = $a_start;
 
  243                 $this->timezone = $a_zone;
 
  265                 $this->date_format = $a_format;
 
  276                 return $this->date_format;
 
  288                 $this->time_format = $a_format;
 
  318                 $this->day_start = $a_start;
 
  337                 $this->day_end = $a_end;
 
  355                 $this->consultation_hours = $a_status;
 
  378                 $this->enablegroupmilestones = $a_enablegroupmilestones;
 
  388                 return $this->enablegroupmilestones;
 
  406                 $this->sync_cache_enabled = $a_status;
 
  416                 $this->sync_cache_minutes = $a_min;
 
  444                 $this->notification = $a_status;
 
  454                 $this->notification_user = $a_not;
 
  464                 $this->cg_registration = $a_status;
 
  474                 $this->course_cal_enabled = $a_stat;
 
  484                 $this->group_cal_enabled = $a_stat;
 
  494                 $this->webcal_sync = $a_stat;
 
  504                 $this->webcal_sync_hours = $a_hours;
 
  519                 $this->storage->set(
'enabled',(
int) $this->
isEnabled());
 
  530                 $this->storage->set(
'cache_enabled',(
int) $this->
isCacheUsed());
 
  550                 $this->
setEnabled($this->storage->get(
'enabled'));
 
  552                 $this->
setDefaultWeekStart($this->storage->get(
'default_week_start',self::WEEK_START_MONDAY));
 
  556                 $this->
setDefaultDayStart($this->storage->get(
'default_day_start',self::DEFAULT_DAY_START));
 
  557                 $this->
setDefaultDayEnd($this->storage->get(
'default_day_end',self::DEFAULT_DAY_END));
 
  559                 $this->
setCacheMinutes($this->storage->get(
'cache_minutes',self::DEFAULT_CACHE_MINUTES));
 
  562                 $this->
enableNotification($this->storage->get(
'notification',$this->isNotificationEnabled()));
 
  563                 $this->
enableConsultationHours($this->storage->get(
'consultation_hours',$this->areConsultationHoursEnabled()));
 
  564                 $this->
enableCGRegistration($this->storage->get(
'cg_registration',$this->isCGRegistrationEnabled()));
 
  565                 $this->
enableCourseCalendar($this->storage->get(
'course_cal',$this->isCourseCalendarEnabled()));
 
  566                 $this->
enableGroupCalendar($this->storage->get(
'group_cal',$this->isGroupCalendarEnabled()));
 
  567                 $this->
enableUserNotification($this->storage->get(
'notification_user',$this->isUserNotificationEnabled()));
 
  568                 $this->
enableWebCalSync($this->storage->get(
'webcal_sync',$this->isWebCalSyncEnabled()));
 
  569                 $this->
setWebCalSyncHours($this->storage->get(
'webcal_sync_hours',$this->getWebCalSyncHours()));
 
  583                 $query = 
"SELECT ref_id FROM object_reference obr ".
 
  584                         "JOIN object_data obd ON obd.obj_id = obr.obj_id ".
 
  585                         "WHERE type = 'cals'";
 
  590                 $this->cal_settings_id = 
$row[0];
 
  601                 include_once(
'./Services/Administration/classes/class.ilSetting.php');
 
  602                 $this->storage = 
new ilSetting(
'calendar');