public function doUpdate(Updater $updater) { $model = new ScheduledReportsModel(); $allReports = ScheduledReportsAPI::getInstance()->getReports(); foreach ($allReports as $report) { $update = array('hour' => $this->adjustTimezoneBySite($report['hour'], $report['idsite'])); $model->updateReport($report['idreport'], $update); } }
public function install() { Model::install(); }