Lines Matching refs:mth_num
189 foreach ($year as $mth_num => $month) {
192 $mth_num,
225 $mth_num, argument
234 $cal .= $this->getMonthNameHTML($mth_num);
242 … $cal .= $this->getDayHTML($cur_day, $mth_num, $today, $year_num, $weekday_num, $opt);
255 * @param int $mth_num Month 1..12
263 public function getDayHTML($cur_day, $mth_num, $today, $year_num, $weekday_num, $opt) argument
273 $month_fmt = sprintf("%02d", $mth_num);
276 $current = mktime(0, 0, 0, $mth_num, $cur_day, $year_num);
308 protected function getMonthNameHTML($mth_num) argument
324 $alt_css = ($mth_num % 2 == 0) ? ' class="alt"' : '';
325 return '<th' . $alt_css . '>' . $month_names[$mth_num - 1] . '</th>';
379 $mth_num = ($mth - 1) % 12 + 1; // real month number (1-12)
382 if ($show_all_mths || in_array($mth_num, $opt['months'])) {
384 $start = date('w', mktime(0, 0, 0, $mth_num, 1, (int)$year));
385 $len = date('j', mktime(0, 0, 0, $mth_num + 1, 0, (int)$year));
388 $years[$year][$mth_num] = ['start' => $start, 'len' => $len];