public function plugin_statistics_service_usage($params)
 {
     $dao = new AgileDashboard_Dao();
     $params['csv_exporter']->buildDatas($dao->getProjectsWithADActivated(), "Agile Dashboard activated");
 }
 public function plugin_statistics_service_usage($params)
 {
     $dao = new AgileDashboard_Dao();
     $statistic_aggregator = new AgileDashboardStatisticsAggregator();
     $params['csv_exporter']->buildDatas($dao->getProjectsWithADActivated(), "Agile Dashboard activated");
     foreach ($statistic_aggregator->getStatisticsLabels() as $statistic_key => $statistic_name) {
         $statistic_data = $statistic_aggregator->getStatistics($statistic_key, $params['start_date'], $params['end_date']);
         $params['csv_exporter']->buildDatas($statistic_data, $statistic_name);
     }
 }