9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
52 if (
$ilUser->getId() == $a_user_id) {
71 if (isset(self::$instances[$a_user_id])) {
72 return self::$instances[$a_user_id];
89 return self::_getInstanceByUserId(
$ilUser->getId());
113 $this->timezone = $a_tz;
131 $this->export_tz_type =
$a_type;
141 case self::CAL_EXPORT_TZ_TZ:
144 case self::CAL_EXPORT_TZ_UTC:
145 include_once
'./Services/Calendar/classes/class.ilTimeZone.php';
161 $this->weekstart = $a_weekstart;
182 $this->day_start = $a_start;
201 $this->day_end = $a_end;
222 $this->date_format = $a_format;
245 $this->time_format = $a_format;
277 $this->calendar_selection_type =
$a_type;
287 $this->show_weeks = $a_val;
326 $this->timezone = $this->
user->getTimeZone();
327 $this->export_tz_type = (
328 ($this->
user->getPref(
'export_tz_type') !==
false) ?
329 $this->
user->getPref(
'export_tz_type') :
332 $this->date_format = $this->
user->getDateFormat();
333 $this->time_format = $this->
user->getTimeFormat();
337 $this->calendar_selection_type = $this->
user->getPref(
'calendar_selection_type') ?
338 $this->
user->getPref(
'calendar_selection_type') :
339 self::CAL_SELECTION_MEMBERSHIP;
344 $this->
user->getPref(
'day_start') !==
false ?
345 $this->
user->getPref(
'day_start') :
346 $this->
settings->getDefaultDayStart()
349 $this->
user->getPref(
'day_end') !==
false ?
350 $this->
user->getPref(
'day_end') :
354 $this->
user->getPref(
'show_weeks') !==
false ?
355 $this->
user->getPref(
'show_weeks') :
getDateFormat()
get date format
static _getInstance()
get singleton instance
setTimeFormat($a_format)
set time format
getWeekStart()
get weekstart
setExportTimeZoneType($a_type)
Set export timezone type.
static _getInstanceByUserId($a_user_id)
get singleton instance
setDayStart($a_start)
Set start of day.
const CAL_SELECTION_MEMBERSHIP
getShowWeeks()
Get show weeks.
setWeekStart($a_weekstart)
set week start
getExportTimeZone()
Get export timezone.
getCalendarSelectionType()
get calendar selection type ("MyMembership" or "Selected Items")
setCalendarSelectionType($a_type)
set calendar selection type
const CAL_SELECTION_ITEMS
static _getInstance()
get instance for logged in user
getTimeFormat()
get time format
getTimeZone()
get Time zone
getExportTimeZoneType()
Get export timezone setting.
static getInstanceByObjId($a_obj_id, $stop_on_error=true)
get an instance of an Ilias object by object id
getDayStart()
get start of day
getDayEnd()
Get end of day.
setDateFormat($a_format)
set date format
__construct($a_user_id)
Constructor.
setShowWeeks($a_val)
Set show weeks.
setDayEnd($a_end)
Set day end.
setTimeZone($a_tz)
set timezone