9include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
50 if (
$ilUser->getId() == $a_user_id) {
69 if (isset(self::$instances[$a_user_id])) {
70 return self::$instances[$a_user_id];
109 $this->timezone = $a_tz;
127 $this->export_tz_type =
$a_type;
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->show_weeks = $a_val;
322 $this->timezone = $this->
user->getTimeZone();
323 $this->export_tz_type = (
324 ($this->
user->getPref(
'export_tz_type') !==
false) ?
325 $this->
user->getPref(
'export_tz_type') :
328 $this->date_format = $this->
user->getDateFormat();
329 $this->time_format = $this->
user->getTimeFormat();
333 $this->calendar_selection_type = $this->
user->getPref(
'calendar_selection_type') ?
334 $this->
user->getPref(
'calendar_selection_type') :
340 $this->
user->getPref(
'day_start') !==
false ?
341 $this->user->getPref(
'day_start') :
342 $this->settings->getDefaultDayStart()
345 $this->
user->getPref(
'day_end') !==
false ?
346 $this->user->getPref(
'day_end') :
347 $this->settings->getDefaultDayEnd()
350 $this->
user->getPref(
'show_weeks') !==
false ?
351 $this->user->getPref(
'show_weeks') :
352 $this->settings->getShowWeeks()
An exception for terminatinating execution or to throw for unit testing.
static _getInstance()
get singleton instance
const CAL_SELECTION_ITEMS
static _getInstance()
get instance for logged in user
getTimeFormat()
get time format
getCalendarSelectionType()
get calendar selection type ("MyMembership" or "Selected Items")
setShowWeeks($a_val)
Set show weeks.
static _getInstanceByUserId($a_user_id)
get singleton instance
setExportTimeZoneType($a_type)
Set export timezone type.
getExportTimeZoneType()
Get export timezone setting.
const CAL_SELECTION_MEMBERSHIP
setTimeFormat($a_format)
set time format
__construct($a_user_id)
Constructor.
setWeekStart($a_weekstart)
set week start
getDayStart()
get start of day
getExportTimeZone()
Get export timezone.
setDateFormat($a_format)
set date format
getTimeZone()
get Time zone
setDayEnd($a_end)
Set day end.
getShowWeeks()
Get show weeks.
getDayEnd()
Get end of day.
getDateFormat()
get date format
setCalendarSelectionType($a_type)
set calendar selection type
getWeekStart()
get weekstart
setDayStart($a_start)
Set start of day.
setTimeZone($a_tz)
set timezone
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id