Lines Matching refs:calendar
98 PHP_MINIT(calendar),
102 PHP_MINFO(calendar),
108 ZEND_GET_MODULE(calendar)
111 PHP_MINIT_FUNCTION(calendar) in PHP_MINIT_FUNCTION() argument
118 PHP_MINFO_FUNCTION(calendar) in PHP_MINFO_FUNCTION() argument
129 const struct cal_entry_t *calendar; in _php_cal_info() local
131 calendar = &cal_conversion_table[cal]; in _php_cal_info()
137 for (i = 1; i <= calendar->num_months; i++) { in _php_cal_info()
138 add_index_string(&months, i, calendar->month_name_long[i]); in _php_cal_info()
139 add_index_string(&smonths, i, calendar->month_name_short[i]); in _php_cal_info()
144 add_assoc_long(ret, "maxdaysinmonth", calendar->max_days_in_month); in _php_cal_info()
145 add_assoc_string(ret, "calname", calendar->name); in _php_cal_info()
146 add_assoc_string(ret, "calsymbol", calendar->symbol); in _php_cal_info()
185 const struct cal_entry_t *calendar; in PHP_FUNCTION() local
197 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
199 sdn_start = calendar->to_jd(year, month, 1); in PHP_FUNCTION()
206 sdn_next = calendar->to_jd(year, 1 + month, 1); in PHP_FUNCTION()
213 sdn_next = calendar->to_jd(1, 1, 1); in PHP_FUNCTION()
216 sdn_next = calendar->to_jd(year + 1, 1, 1); in PHP_FUNCTION()
251 const struct cal_entry_t *calendar; in PHP_FUNCTION() local
261 calendar = &cal_conversion_table[cal]; in PHP_FUNCTION()
265 calendar->from_jd(jd, &year, &month, &day); in PHP_FUNCTION()
291 add_assoc_string(return_value, "abbrevmonth", calendar->month_name_short[month]); in PHP_FUNCTION()
292 add_assoc_string(return_value, "monthname", calendar->month_name_long[month]); in PHP_FUNCTION()