9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
41 if($ilUser->getId() == $a_user_id)
43 $this->user = $ilUser;
63 if(isset(self::$instances[$a_user_id]))
65 return self::$instances[$a_user_id];
104 $this->timezone = $a_tz;
116 $this->weekstart = $a_weekstart;
137 $this->day_start = $a_start;
156 $this->day_end = $a_end;
177 $this->date_format = $a_format;
200 $this->time_format = $a_format;
232 $this->calendar_selection_type = $a_type;
242 $this->user->writePref(
'user_tz',$this->
getTimeZone());
243 $this->user->writePref(
'weekstart',$this->
getWeekStart());
244 $this->user->writePref(
'date_format',$this->
getDateFormat());
245 $this->user->writePref(
'time_format',$this->
getTimeFormat());
247 $this->user->writePref(
'day_start',$this->
getDayStart());
248 $this->user->writePref(
'day_end',$this->
getDayEnd());
259 $this->timezone = $this->user->getTimeZone();
260 $this->date_format = $this->user->getDateFormat();
261 $this->time_format = $this->user->getTimeFormat();
262 if((
$weekstart = $this->user->getPref(
'weekstart')) ===
false)
264 $weekstart = $this->settings->getDefaultWeekStart();
266 $this->calendar_selection_type = $this->user->getPref(
'calendar_selection_type') ?
267 $this->user->getPref(
'calendar_selection_type') :
272 $this->
setDayStart($this->user->getPref(
'day_start') !==
false ?
273 $this->user->getPref(
'day_start') :
276 $this->
setDayEnd($this->user->getPref(
'day_end') !==
false ?
277 $this->user->getPref(
'day_end') :