Ejemplo n.º 1
0
 public function fetch_all_timeSelection_data()
 {
     $timeSelectionDataCollectors = new datahelper\Time_Selection_DataCollectors($this->settingVars);
     filters\timeFilter::getYTD($this->settingVars);
     //ALTERNATIVE OF getSlice WHEN THE PROJECT IS LOADING FOR FIRST TIME
     //COLLECT TIME SELECTION DATA
     if ($_REQUEST['includeFutureDates'] == 'true') {
         switch ($this->settingVars->timeSelectionUnit) {
             case 'week':
                 $timeSelectionDataCollectors->getAllWeek_with_future_dates($this->jsonOutput);
                 break;
             case 'month':
                 $timeSelectionDataCollectors->getAllMonth_with_future_dates($this->jsonOutput);
                 break;
             default:
                 $timeSelectionDataCollectors->getAllWeek_with_future_dates($this->jsonOutput);
         }
     } else {
         $timeSelectionDataCollectors->getAllWeek($this->jsonOutput);
     }
     $timeSelectionDataCollectors->getAllDates($this->jsonOutput);
 }