9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
37 if($ilUser->getId() == $a_user_id)
39 $this->user = $ilUser;
59 if(isset(self::$instances[$a_user_id]))
61 return self::$instances[$a_user_id];
100 $this->timezone = $a_tz;
112 $this->weekstart = $a_weekstart;
135 $this->time_format = $a_format;
167 $this->calendar_selection_type = $a_type;
177 $this->user->writePref(
'user_tz',$this->
getTimeZone());
178 $this->user->writePref(
'weekstart',$this->
getWeekStart());
179 $this->user->writePref(
'time_format',$this->
getTimeFormat());
191 $this->timezone = $this->user->getTimeZone();
192 $this->time_format = $this->user->getTimeFormat();
193 if((
$weekstart = $this->user->getPref(
'weekstart')) ===
false)
195 $weekstart = $this->settings->getDefaultWeekStart();
197 $this->calendar_selection_type = $this->user->getPref(
'calendar_selection_type') ?
198 $this->user->getPref(
'calendar_selection_type') :