/** * Return full month names according to the locale. * * @return array * 1-based array with full month names * */ public static function &getFullMonthNames() { static $fullMonthNames; if (!isset($fullMonthNames)) { // set LC_TIME and build the arrays from locale-provided names CRM_Core_I18n::setLcTime(); for ($i = 1; $i <= 12; $i++) { $fullMonthNames[$i] = strftime('%B', mktime(0, 0, 0, $i, 10, 1970)); } } return $fullMonthNames; }
/** * return full month names according to the locale * * @return array 1-based array with full month names * * @static */ function &getFullMonthNames() { if (!isset($GLOBALS['_CRM_UTILS_DATE']['fullMonthNames'])) { // set LC_TIME and build the arrays from locale-provided names CRM_Core_I18n::setLcTime(); for ($i = 1; $i <= 12; $i++) { $GLOBALS['_CRM_UTILS_DATE']['fullMonthNames'][$i] = strftime('%B', mktime(0, 0, 0, $i, 10, 1970)); } } return $GLOBALS['_CRM_UTILS_DATE']['fullMonthNames']; }