|
ILIAS
Release_3_10_x_branch Revision 61812
|
Class ilCalendarUtil. More...
Collaboration diagram for ilCalendarUtil:Static Public Member Functions | |
| static | _isToday ($date) |
| check if a date is today | |
| static | _numericMonthToString ($a_month, $a_long=true) |
| numeric month to string | |
| static | _numericDayToString ($a_day, $a_long=true) |
| get | |
| static | _buildWeekDayList ($a_day, $a_weekstart) |
| build week day list | |
| static | _buildMonthDayList ($a_month, $a_year, $weekstart) |
| Build a month day list. | |
| static | initJSCalendar () |
| Init Javascript Calendar. | |
| static | _getShortTimeZoneList () |
| get short timezone list | |
| static | _isLeapYear ($a_year) |
| check if a given year is a leap year | |
| static | _getMaxDayOfMonth ($a_year, $a_month) |
| get max day of month 2008,2 => 29 | |
| static | calculateFontColor ($a_html_color_code) |
| Calculate best font color from html hex color code. | |
Static Public Attributes | |
| static | $init_done |
Static Private Attributes | |
| static | $today = null |
|
static |
Build a month day list.
public
| int | month |
| int | year |
| int | weekstart (0 => Sunday,1 => Monday) |
Definition at line 133 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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
build week day list
public
| ilDate | a day in a week |
| int | weekstart |
Definition at line 101 of file class.ilCalendarUtil.php.
References IL_CAL_DAY, IL_CAL_FKT_GETDATE, and ilDateList\TYPE_DATE.
Referenced by ilCalendarWeekGUI\show().
Here is the caller graph for this function:
|
static |
get max day of month 2008,2 => 29
public
| int | year |
| int | month |
Definition at line 394 of file class.ilCalendarUtil.php.
Referenced by _buildMonthDayList(), ilCalendarRecurrenceCalculator\applyBYMONTHDAYRules(), ilCalendarRecurrenceCalculator\getMonthWeekDays(), and ilCalendarSchedule\initPeriod().
Here is the caller graph for this function:
|
static |
get short timezone list
public
Definition at line 285 of file class.ilCalendarUtil.php.
Referenced by ilObjCalendarSettingsGUI\initFormSettings(), and ilCalendarUserSettingsGUI\initSettingsForm().
Here is the caller graph for this function:
|
static |
check if a given year is a leap year
public
| int | year |
Definition at line 366 of file class.ilCalendarUtil.php.
Referenced by ilCalendarRecurrenceCalculator\getYearWeekDays().
Here is the caller graph for this function:
|
static |
check if a date is today
| ilDateTime | $date | date to check |
Definition at line 43 of file class.ilCalendarUtil.php.
References ilDateTime\_equals(), IL_CAL_DAY, and IL_CAL_UNIX.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), and ilCalendarMonthGUI\show().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
get
public
| int | day of week (0 for sunday, 1 for monday) |
| bool | short or long day translation |
Definition at line 82 of file class.ilCalendarUtil.php.
References $lng.
Referenced by ilMiniCalendarGUI\addMiniMonth(), ilCalendarBlockGUI\addMiniMonth(), ilRecurrenceInputGUI\buildMonthlyByDaySelection(), ilRecurrenceInputGUI\buildWeekDaySelection(), ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilCalendarHeaderNavigationGUI\getHTML(), ilAdvancedMDSubstitution\parseValue(), ilCalendarDayGUI\show(), ilCalendarMonthGUI\show(), and ilCalendarWeekGUI\show().
Here is the caller graph for this function:
|
static |
numeric month to string
public
| int | month (1-12) |
| bool | short or long month translation |
Definition at line 64 of file class.ilCalendarUtil.php.
References $lng.
Referenced by ilRecurrenceInputGUI\buildYearlyByDaySelection(), ilRecurrenceInputGUI\buildYearlyByMonthDaySelection(), ilDatePresentation\formatDate(), ilCalendarDayGUI\show(), and ilCalendarWeekGUI\show().
Here is the caller graph for this function:
|
static |
Calculate best font color from html hex color code.
public
| string | hex value of color |
Definition at line 414 of file class.ilCalendarUtil.php.
Referenced by ilCalendarDayGUI\showAppointment(), ilCalendarMonthGUI\showEvents(), ilCalendarDayGUI\showFulldayAppointment(), and ilCalendarWeekGUI\showFulldayAppointment().
Here is the caller graph for this function:
|
static |
Init Javascript Calendar.
Definition at line 198 of file class.ilCalendarUtil.php.
Referenced by ilDateTimeInputGUI\insert().
Here is the caller graph for this function:
|
static |
Definition at line 35 of file class.ilCalendarUtil.php.
|
staticprivate |
Definition at line 34 of file class.ilCalendarUtil.php.