コード例 #1
0
 public function DateHeader()
 {
     switch ($this->view) {
         case "day":
             return CalendarUtil::localize($this->startDate->get(), null, CalendarUtil::ONE_DAY_HEADER);
             break;
         case "month":
             return CalendarUtil::localize($this->startDate->get(), null, CalendarUtil::MONTH_HEADER);
             break;
         case "year":
             return CalendarUtil::localize($this->startDate->get(), null, CalendarUtil::YEAR_HEADER);
             break;
         case "range":
         case "week":
         case "weekend":
             list($strStartDate, $strEndDate) = CalendarUtil::get_date_string($this->startDate->date(), $this->endDate->date());
             return $strStartDate . $strEndDate;
             break;
         default:
             return $this->DefaultDateHeader;
             break;
     }
 }