Exemple #1
0
 /**
  * @param FormParam $objFormParam
  */
 public function lfSetStartEndDate(&$objFormParam)
 {
     $arrRet = $objFormParam->getHashArray();
     // 月度集計
     if ($arrRet['search_form'] == 1) {
         list($sdate, $edate) = Utils::sfTermMonth($arrRet['search_startyear_m'], $arrRet['search_startmonth_m'], CLOSE_DAY);
         // 期間集計
     } elseif ($arrRet['search_form'] == 2) {
         $sdate = $arrRet['search_startyear'] . '/' . $arrRet['search_startmonth'] . '/' . $arrRet['search_startday'];
         $edate = $arrRet['search_endyear'] . '/' . $arrRet['search_endmonth'] . '/' . $arrRet['search_endday'];
     }
     return array($sdate, $edate);
 }