ILIAS
Release_3_10_x_branch Revision 61812
|
Stores all calendar relevant settings. More...
Public Member Functions | |
setEnabled ($a_enabled) | |
set enabled | |
isEnabled () | |
is calendar enabled | |
setDefaultWeekStart ($a_start) | |
set week start | |
getDefaultWeekStart () | |
get default week start | |
setDefaultTimeZone ($a_zone) | |
set default timezone | |
getDefaultTimeZone () | |
get derfault time zone | |
setDefaultTimeFormat ($a_format) | |
set default time format | |
getDefaultTimeFormat () | |
get default time format | |
getCalendarSettingsId () | |
Get calendar settings id (Used for permission checks) | |
save () | |
save |
Static Public Member Functions | |
static | _getInstance () |
get singleton instance |
Data Fields | |
const | WEEK_START_MONDAY = 1 |
const | WEEK_START_SUNDAY = 0 |
const | TIME_FORMAT_24 = 1 |
const | TIME_FORMAT_12 = 2 |
Private Member Functions | |
__construct () | |
singleton contructor | |
read () | |
Read settings. | |
readCalendarSettingsId () | |
Read ref_id of calendar settings. | |
initStorage () | |
Init storage class (ilSetting) private. |
Private Attributes | |
$db = null | |
$storage = null | |
$timezone = null | |
$time_format = null | |
$week_start = 0 | |
$enabled = false | |
$cal_settings_id = 0 |
Static Private Attributes | |
static | $instance = null |
Stores all calendar relevant settings.
Definition at line 35 of file class.ilCalendarSettings.php.
|
private |
singleton contructor
private
Definition at line 59 of file class.ilCalendarSettings.php.
References initStorage(), read(), and readCalendarSettingsId().
|
static |
get singleton instance
public
Definition at line 77 of file class.ilCalendarSettings.php.
References $instance.
Referenced by ilCalendarUserSettingsGUI\__construct(), ilObjPersonalDesktopSettingsGUI\editSettings(), ilCalendarPresentationGUI\executeCommand(), ilObjUser\getTimeFormat(), ilObjUser\getTimeZone(), ilObjCalendarSettingsGUI\initCalendarSettings(), ilCalendarCategoryGUI\initFormCategory(), ilColumnGUI\isGloballyActivated(), ilCalendarCategoryGUI\readPermissions(), ilCalendarCategories\readPublicCalendars(), ilObjPersonalDesktopSettingsGUI\saveSettings(), and ilPersonalDesktopGUI\setTabs().
ilCalendarSettings::getCalendarSettingsId | ( | ) |
Get calendar settings id (Used for permission checks)
public
Definition at line 180 of file class.ilCalendarSettings.php.
References $cal_settings_id.
ilCalendarSettings::getDefaultTimeFormat | ( | ) |
get default time format
public
Definition at line 168 of file class.ilCalendarSettings.php.
References $time_format.
Referenced by save().
ilCalendarSettings::getDefaultTimeZone | ( | ) |
get derfault time zone
public
Definition at line 145 of file class.ilCalendarSettings.php.
References $timezone.
Referenced by save().
ilCalendarSettings::getDefaultWeekStart | ( | ) |
get default week start
public
Definition at line 125 of file class.ilCalendarSettings.php.
References $week_start.
Referenced by save().
|
private |
Init storage class (ilSetting) private.
Definition at line 239 of file class.ilCalendarSettings.php.
Referenced by __construct().
ilCalendarSettings::isEnabled | ( | ) |
is calendar enabled
public
Definition at line 103 of file class.ilCalendarSettings.php.
References $enabled.
Referenced by save().
|
private |
Read settings.
private
Definition at line 206 of file class.ilCalendarSettings.php.
References ilTimeZone\_getDefaultTimeZone(), setDefaultTimeFormat(), setDefaultTimeZone(), setDefaultWeekStart(), and setEnabled().
Referenced by __construct().
|
private |
Read ref_id of calendar settings.
private
@return |
Definition at line 221 of file class.ilCalendarSettings.php.
References $res.
Referenced by __construct().
ilCalendarSettings::save | ( | ) |
save
public
Definition at line 191 of file class.ilCalendarSettings.php.
References getDefaultTimeFormat(), getDefaultTimeZone(), getDefaultWeekStart(), and isEnabled().
ilCalendarSettings::setDefaultTimeFormat | ( | $a_format | ) |
set default time format
public
int | time format |
Definition at line 157 of file class.ilCalendarSettings.php.
Referenced by read().
ilCalendarSettings::setDefaultTimeZone | ( | $a_zone | ) |
set default timezone
public
Definition at line 135 of file class.ilCalendarSettings.php.
Referenced by read().
ilCalendarSettings::setDefaultWeekStart | ( | $a_start | ) |
set week start
public
Definition at line 114 of file class.ilCalendarSettings.php.
Referenced by read().
ilCalendarSettings::setEnabled | ( | $a_enabled | ) |
set enabled
public
Definition at line 92 of file class.ilCalendarSettings.php.
Referenced by read().
|
private |
Definition at line 51 of file class.ilCalendarSettings.php.
Referenced by getCalendarSettingsId().
|
private |
Definition at line 45 of file class.ilCalendarSettings.php.
|
private |
Definition at line 50 of file class.ilCalendarSettings.php.
Referenced by isEnabled().
|
staticprivate |
Definition at line 43 of file class.ilCalendarSettings.php.
Referenced by _getInstance().
|
private |
Definition at line 46 of file class.ilCalendarSettings.php.
|
private |
Definition at line 48 of file class.ilCalendarSettings.php.
Referenced by getDefaultTimeFormat().
|
private |
Definition at line 47 of file class.ilCalendarSettings.php.
Referenced by getDefaultTimeZone().
|
private |
Definition at line 49 of file class.ilCalendarSettings.php.
Referenced by getDefaultWeekStart().
const ilCalendarSettings::TIME_FORMAT_12 = 2 |
Definition at line 41 of file class.ilCalendarSettings.php.
Referenced by ilDatePresentation\formatDate(), ilDatePresentation\formatPeriod(), ilObjCalendarSettingsGUI\initFormSettings(), ilCalendarUserSettingsGUI\initSettingsForm(), ilCalendarDayGUI\parseHourInfo(), ilCalendarWeekGUI\parseHourInfo(), ilCalendarDayGUI\showAppointment(), ilCalendarWeekGUI\showAppointment(), and ilCalendarMonthGUI\showEvents().
const ilCalendarSettings::TIME_FORMAT_24 = 1 |
Definition at line 40 of file class.ilCalendarSettings.php.
Referenced by ilDatePresentation\formatDate(), ilDatePresentation\formatPeriod(), ilObjCalendarSettingsGUI\initFormSettings(), ilCalendarUserSettingsGUI\initSettingsForm(), ilCalendarDayGUI\parseHourInfo(), ilCalendarWeekGUI\parseHourInfo(), ilCalendarDayGUI\showAppointment(), ilCalendarWeekGUI\showAppointment(), and ilCalendarMonthGUI\showEvents().
const ilCalendarSettings::WEEK_START_MONDAY = 1 |
Definition at line 37 of file class.ilCalendarSettings.php.
const ilCalendarSettings::WEEK_START_SUNDAY = 0 |
Definition at line 38 of file class.ilCalendarSettings.php.