24 include_once(
'Services/Calendar/classes/class.ilTimeZone.php');
108 $this->cache_enabled = $a_status;
127 $this->cache_minutes = $a_min;
147 $this->enabled = $a_enabled;
169 $this->week_start = $a_start;
190 $this->timezone = $a_zone;
212 $this->time_format = $a_format;
242 $this->day_start = $a_start;
261 $this->day_end = $a_end;
284 $this->enablegroupmilestones = $a_enablegroupmilestones;
294 return $this->enablegroupmilestones;
312 $this->sync_cache_enabled = $a_status;
322 $this->sync_cache_minutes = $a_min;
341 $this->storage->set(
'enabled',(
int) $this->
isEnabled());
351 $this->storage->set(
'cache_enabled',(
int) $this->
isCacheUsed());
363 $this->
setEnabled($this->storage->get(
'enabled'));
365 $this->
setDefaultWeekStart($this->storage->get(
'default_week_start',self::WEEK_START_MONDAY));
368 $this->
setDefaultDayStart($this->storage->get(
'default_day_start',self::DEFAULT_DAY_START));
369 $this->
setDefaultDayEnd($this->storage->get(
'default_day_end',self::DEFAULT_DAY_END));
371 $this->
setCacheMinutes($this->storage->get(
'cache_minutes',self::DEFAULT_CACHE_MINUTES));
387 $query =
"SELECT ref_id FROM object_reference obr ".
388 "JOIN object_data obd ON obd.obj_id = obr.obj_id ".
389 "WHERE type = 'cals'";
394 $this->cal_settings_id =
$row[0];
405 include_once(
'./Services/Administration/classes/class.ilSetting.php');
406 $this->storage =
new ilSetting(
'calendar');