9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
40 if($ilUser->getId() == $a_user_id)
42 $this->user = $ilUser;
62 if(isset(self::$instances[$a_user_id]))
64 return self::$instances[$a_user_id];
103 $this->timezone = $a_tz;
115 $this->weekstart = $a_weekstart;
136 $this->day_start = $a_start;
155 $this->day_end = $a_end;
176 $this->time_format = $a_format;
208 $this->calendar_selection_type = $a_type;
218 $this->user->writePref(
'user_tz',$this->
getTimeZone());
219 $this->user->writePref(
'weekstart',$this->
getWeekStart());
220 $this->user->writePref(
'time_format',$this->
getTimeFormat());
222 $this->user->writePref(
'day_start',$this->
getDayStart());
223 $this->user->writePref(
'day_end',$this->
getDayEnd());
234 $this->timezone = $this->user->getTimeZone();
235 $this->time_format = $this->user->getTimeFormat();
236 if((
$weekstart = $this->user->getPref(
'weekstart')) ===
false)
238 $weekstart = $this->settings->getDefaultWeekStart();
240 $this->calendar_selection_type = $this->user->getPref(
'calendar_selection_type') ?
241 $this->user->getPref(
'calendar_selection_type') :
246 $this->
setDayStart($this->user->getPref(
'day_start') !==
false ?
247 $this->user->getPref(
'day_start') :
250 $this->
setDayEnd($this->user->getPref(
'day_end') !==
false ?
251 $this->user->getPref(
'day_end') :