ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Static Public Member Functions | |
static | convertDateToUtcDBTimestamp (?\ilDateTime $date=null) |
static | _isToday (ilDateTime $date) |
static | _numericMonthToString (int $a_month, bool $a_long=true, ?ilLanguage $lng=null) |
numeric month to string More... | |
static | _numericDayToString (int $a_day, bool $a_long=true, ?ilLanguage $lng=null) |
static | _buildWeekDayList (ilDate $a_day, int $a_weekstart) |
build week day list @access public More... | |
static | _buildMonthDayList (int $a_month, int $a_year, int $weekstart) |
Build a month day list. More... | |
static | initJSCalendar () |
static | getZoneInfoFile ($a_tz) |
static | _getShortTimeZoneList () |
get short timezone list More... | |
static | _isLeapYear (int $a_year) |
check if a given year is a leap year More... | |
static | _getMaxDayOfMonth (int $a_year, int $a_month) |
get max day of month 2008,2 => 29 More... | |
static | calculateFontColor (string $a_html_color_code) |
Calculate best font color from html hex color code. More... | |
static | getHourSelection (int $a_format) |
Get hour selection depending on user specific hour format. More... | |
static | initDefaultCalendarByType (int $a_type_id, int $a_usr_id, string $a_title, bool $a_create=false) |
Init the default calendar for given type and user. More... | |
static | getUserDateFormat (int $a_add_time=0, bool $a_for_parsing=false) |
Parse current user setting into date/time format. More... | |
static | initDateTimePicker () |
static | parseDateString (string $date, bool $add_time=false, ?string $force_format=null) |
Parse (incoming) string to date/time object. More... | |
static | parseIncomingDate ($value, bool $add_time=false) |
Try to parse incoming value to date object. More... | |
Static Public Attributes | |
static string | $init_done |
Static Protected Attributes | |
static bool | $init_datetimepicker = false |
Static Private Attributes | |
static ilDateTime | $today = null |
static array | $default_calendar = array() |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class ilCalendarUtil
Definition at line 23 of file class.ilCalendarUtil.php.
|
static |
Build a month day list.
int | month |
int | year |
int | weekstart (0 => Sunday,1 => Monday) |
Definition at line 118 of file class.ilCalendarUtil.php.
References _getMaxDayOfMonth(), IL_CAL_FKT_DATE, IL_CAL_FKT_GETDATE, IL_CAL_UNIX, and ilDateList\TYPE_DATE.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), and ilCalendarMonthGUI\show().
|
static |
build week day list @access public
ilDate | a day in a week |
int | weekstart |
Definition at line 92 of file class.ilCalendarUtil.php.
References ilDate\get(), IL_CAL_DAY, IL_CAL_FKT_GETDATE, and ilDateList\TYPE_DATE.
Referenced by ilCalendarViewGUI\getBucketTitle(), ilCalendarHeaderNavigationGUI\getHTML(), and ilCalendarWeekGUI\show().
|
static |
get max day of month 2008,2 => 29
Definition at line 385 of file class.ilCalendarUtil.php.
Referenced by _buildMonthDayList(), ilCalendarRecurrenceCalculator\applyBYMONTHDAYRules(), ilCalendarRecurrenceCalculator\getMonthWeekDays(), and ilCalendarSchedule\initPeriod().
|
static |
get short timezone list
Definition at line 288 of file class.ilCalendarUtil.php.
Referenced by ilObjCalendarSettingsGUI\initFormSettings(), and ilCalendarUserSettingsGUI\initSettingsForm().
|
static |
check if a given year is a leap year
Definition at line 366 of file class.ilCalendarUtil.php.
Referenced by ilCalendarRecurrenceCalculator\getYearWeekDays().
|
static |
Definition at line 41 of file class.ilCalendarUtil.php.
References $DIC, ilDateTime\_equals(), IL_CAL_DAY, and IL_CAL_UNIX.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), and ilCalendarMonthGUI\show().
|
static |
int | day of week (0 for sunday, 1 for monday) |
bool | short or long day translation |
Definition at line 72 of file class.ilCalendarUtil.php.
Referenced by ilCalendarWeekGUI\addHeaderDate(), ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildWeekDaySelection(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilSessionStatisticsGUI\exportCSV(), ilBookingReservationsTableGUI\fillRow(), ilBookingReservationsTableGUI\fillRowCSV(), ilBookingReservationsTableGUI\fillRowExcel(), ILIAS\Calendar\Recurrence\Input\BuilderImpl\getDayInput(), ilCalendarHeaderNavigationGUI\getHTML(), ilCalendarDayGUI\show(), and ilCalendarMonthGUI\show().
|
static |
numeric month to string
int | month (1-12) |
bool | short or long month translation |
Definition at line 57 of file class.ilCalendarUtil.php.
Referenced by ilCalendarBlockGUI\addMiniMonth(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ILIAS\Calendar\Recurrence\Input\BuilderImpl\getMonthInput(), ilCalendarDayGUI\show(), and ilCalendarMonthGUI\show().
|
static |
Calculate best font color from html hex color code.
string | hex value of color |
Definition at line 398 of file class.ilCalendarUtil.php.
Referenced by ilCalendarDayGUI\showAppointment(), ilCalendarWeekGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarDayGUI\showFulldayAppointment(), and ilCalendarWeekGUI\showFulldayAppointment().
|
static |
Definition at line 30 of file class.ilCalendarUtil.php.
References IL_CAL_DATE, IL_CAL_DATETIME, and ilTimeZone\UTC.
Referenced by ilObjGroup\update(), and ilObjCourse\updateSettings().
|
static |
Get hour selection depending on user specific hour format.
Definition at line 414 of file class.ilCalendarUtil.php.
References ilCalendarSettings\TIME_FORMAT_12, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilObjCalendarSettingsGUI\initFormSettings(), and ilCalendarUserSettingsGUI\initSettingsForm().
|
static |
Parse current user setting into date/time format.
?int | $a_add_time 1=hh:mm, 2=hh:mm:ss | |
bool | $a_for_parsing |
Definition at line 478 of file class.ilCalendarUtil.php.
References $DIC, and ilCalendarSettings\TIME_FORMAT_24.
Referenced by ilStudyProgrammeUserTable\getUserDateFormat(), and ilPRGActionNoteBuilder\getUserDateFormat().
|
static |
Definition at line 275 of file class.ilCalendarUtil.php.
Referenced by ilCalendarExport\createTimezones().
|
static |
Definition at line 509 of file class.ilCalendarUtil.php.
References $DIC.
Referenced by ilPageObjectGUI\initEditing(), and ilExerciseManagementGUI\initIndividualDeadlineModal().
|
static |
Init the default calendar for given type and user.
Definition at line 436 of file class.ilCalendarUtil.php.
Referenced by ilConsultationHourUtils\bookAppointment(), and ilConsultationHoursGUI\createAppointments().
|
static |
Definition at line 190 of file class.ilCalendarUtil.php.
|
static |
Parse (incoming) string to date/time object.
string | $date | |
bool | $add_time | 1=hh:mm, 2=hh:mm:ss |
bool | $a_use_generic_format |
ilDateTimeException |
Definition at line 532 of file class.ilCalendarUtil.php.
References $DIC, IL_CAL_DATE, and IL_CAL_DATETIME.
|
static |
Try to parse incoming value to date object.
string | ilDateTime | $value | |
int | $add_time |
Definition at line 583 of file class.ilCalendarUtil.php.
Referenced by ilDateDurationInputGUI\checkInput(), ilDateTimeInputGUI\checkInput(), ilAdvancedMDFieldDefinitionDate\getLuceneSearchString(), ilAdvancedMDFieldDefinitionDateTime\getLuceneSearchString(), ilSessionStatisticsGUI\importDate(), ilADTDateSearchBridgeRange\importFromPost(), ilADTDateSearchBridgeSingle\importFromPost(), ilADTDateTimeSearchBridgeRange\importFromPost(), ilADTDateTimeSearchBridgeSingle\importFromPost(), ilDateDurationInputGUI\setValueByArray(), ilDateTimeInputGUI\setValueByArray(), ilCourseContentGUI\updateManagedTimings(), and ilCourseContentGUI\updatePersonalTimings().
|
staticprivate |
Definition at line 26 of file class.ilCalendarUtil.php.
|
staticprotected |
Definition at line 28 of file class.ilCalendarUtil.php.
|
static |
Definition at line 27 of file class.ilCalendarUtil.php.
|
staticprivate |
Definition at line 25 of file class.ilCalendarUtil.php.