コード例 #1
0
ファイル: Tasks.php プロジェクト: piwik/piwik
 public function schedule()
 {
     foreach (API::getInstance()->getReports() as $report) {
         if (!$report['deleted'] && $report['period'] != Schedule::PERIOD_NEVER) {
             $schedule = Schedule::getScheduledTimeForPeriod($report['period']);
             $schedule->setHour($report['hour']);
             $schedule->setTimezone('UTC');
             // saved hour is UTC always
             $this->custom(API::getInstance(), 'sendReport', $report['idreport'], $schedule);
         }
     }
 }