Пример #1
0
 function get_next_date_str()
 {
     if ($this->view == 'month') {
         $day = $this->date_time->get("+1 month")->get_day_begin(1);
     } else {
         if ($this->view == 'week' || $this->view == 'shared') {
             $day = $this->date_time->get("+7 days")->get_day_by_index_this_week(0)->get_day_begin();
         } else {
             if ($this->view == 'day') {
                 $day = $this->date_time->get("tomorrow")->get_day_begin();
             } else {
                 if ($this->view == 'year') {
                     $day = $this->date_time->get("+1 year")->get_day_begin();
                 } else {
                     sugar_die("get_next_date_str: not defined for view");
                 }
             }
         }
     }
     return $day->get_date_str();
 }