コード例 #1
0
ファイル: budget.php プロジェクト: rrsc/beansbooks
 public function date_months()
 {
     $months = parent::months_backward_36();
     if (!isset($this->report_budget_result)) {
         return $months;
     }
     foreach ($months as $index => $month) {
         if ($month['YYYY-MM'] == substr($this->report_budget_result->data->date_start, 0, 7)) {
             $months[$index]['selected'] = TRUE;
         } else {
             $months[$index]['selected'] = FALSE;
         }
     }
     return $months;
 }