Class CalendarUtil
Located at calendar_base/code/CalendarUtil.php
Methods summary
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
|
public static
|
#
getDateString( mixed $start_date, mixed $end_date )
This function is used to write a date range in the common human-readable format on the front end. If the date range spans days within the month, we do not rewrte the month name. If it spans two different months, we write both month names, both days, but do not rewrite the year, etc. Though it appears to break the MVC guidelines, it is a lot cleaner than conducting all of this logic on the frontend. |
public static
|
|
public
|
|
public
|
Magic methods summary
Constants summary
string |
ONE_DAY
|
"OneDay" |
|
string |
SAME_MONTH_SAME_YEAR
|
"SameMonthSameYear" |
|
string |
DIFF_MONTH_SAME_YEAR
|
"DiffMonthSameYear" |
|
string |
DIFF_MONTH_DIFF_YEAR
|
"DiffMonthDiffYear" |
|
string |
ONE_DAY_HEADER
|
"OneDayHeader" |
|
string |
MONTH_HEADER
|
"MonthHeader" |
|
string |
YEAR_HEADER
|
"YearHeader" |
Properties summary
public static
array
|
$months_map | |
public static
boolean
|
$NeedTranslate |