maximumRows = Config::getInstance()->General['datatable_archiving_maximum_rows_standard']; $this->processor = $processing; } abstract public function archiveDay(); abstract public function archivePeriod(); // todo: review this concept, each plugin should somehow maintain the list of report names they generate public function shouldArchive() { $pluginName = Common::unprefixClass(get_class($this)); $pluginName = str_replace("_Archiver", "", $pluginName); return $this->getProcessor()->shouldProcessReportsForPlugin($pluginName); } /** * @return Piwik_ArchiveProcessor_Day|Piwik_ArchiveProcessor_Period */ protected function getProcessor() { return $this->processor; } /** * @return Piwik_DataAccess_LogAggregator */ protected function getLogAggregator() { return $this->getProcessor()->getLogAggregator(); } }