9 include_once(
'./Services/Calendar/classes/class.ilCalendarSettings.php');
45 if($ilUser->getId() == $a_user_id)
67 if(isset(self::$instances[$a_user_id]))
69 return self::$instances[$a_user_id];
84 return self::_getInstanceByUserId($ilUser->getId());
126 $this->export_tz_type =
$a_type;
137 case self::CAL_EXPORT_TZ_TZ:
140 case self::CAL_EXPORT_TZ_UTC:
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;
304 $this->export_tz_type = (
305 ($this->
user->getPref(
'export_tz_type') !== FALSE) ?
306 $this->
user->getPref(
'export_tz_type') :
309 $this->date_format = $this->
user->getDateFormat();
310 $this->time_format = $this->
user->getTimeFormat();
315 $this->calendar_selection_type = $this->
user->getPref(
'calendar_selection_type') ?
316 $this->
user->getPref(
'calendar_selection_type') :
317 self::CAL_SELECTION_MEMBERSHIP;
322 $this->
user->getPref(
'day_start') :
326 $this->
user->getPref(
'day_end') :
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
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
Create styles array
The data for the language used.
getDayStart()
get start of day
getDayEnd()
Get end of day.
setDateFormat($a_format)
set date format
__construct($a_user_id)
Constructor.
setDayEnd($a_end)
Set day end.
setTimeZone($a_tz)
set timezone