Exemplo n.º 1
0
 function setStatisticsData()
 {
     $theHour = 3600;
     $theDay = $theHour * 24;
     $days = 30;
     $previousDay = date('Y-m-d 00:00:00', strtotime("-1 day", time()));
     $fiewDaysBefore = date('Y-m-d 00:00:00', strtotime("-30 Days", time()));
     JavascriptHelper::addObject('opensPerDay', StatisticsHelper::openedNewslettersPerDay($fiewDaysBefore, $previousDay, null));
     JavascriptHelper::addObject('subsPerDay', StatisticsHelper::activeSubscribersPerDay($fiewDaysBefore, $previousDay, null));
 }