9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
45 if($ilUser->getId() == $a_user_id)
67 if(isset(self::$instances[$a_user_id]))
69 return self::$instances[$a_user_id];
108 $this->timezone = $a_tz;
126 $this->export_tz_type = $a_type;
137 case self::CAL_EXPORT_TZ_TZ:
140 case self::CAL_EXPORT_TZ_UTC:
141 include_once
'./Services/Calendar/classes/class.ilTimeZone.php';
157 $this->weekstart = $a_weekstart;
178 $this->day_start = $a_start;
197 $this->day_end = $a_end;
218 $this->date_format = $a_format;
241 $this->time_format = $a_format;
273 $this->calendar_selection_type = $a_type;
283 $this->user->writePref(
'user_tz',$this->
getTimeZone());
285 $this->user->writePref(
'weekstart',$this->
getWeekStart());
286 $this->user->writePref(
'date_format',$this->
getDateFormat());
287 $this->user->writePref(
'time_format',$this->
getTimeFormat());
289 $this->user->writePref(
'day_start',$this->
getDayStart());
290 $this->user->writePref(
'day_end',$this->
getDayEnd());
303 $this->timezone = $this->user->getTimeZone();
304 $this->export_tz_type = (
305 ($this->user->getPref(
'export_tz_type') !== FALSE) ?
306 $this->user->getPref(
'export_tz_type') :
309 $this->date_format = $this->user->getDateFormat();
310 $this->time_format = $this->user->getTimeFormat();
311 if((
$weekstart = $this->user->getPref(
'weekstart')) ===
false)
313 $weekstart = $this->settings->getDefaultWeekStart();
315 $this->calendar_selection_type = $this->user->getPref(
'calendar_selection_type') ?
316 $this->user->getPref(
'calendar_selection_type') :
321 $this->
setDayStart($this->user->getPref(
'day_start') !==
false ?
322 $this->user->getPref(
'day_start') :
325 $this->
setDayEnd($this->user->getPref(
'day_end') !==
false ?
326 $this->user->getPref(
'day_end') :