protected function execute() { $this->debug('Starting impression preocessor'); $this->processedTableIndex = Gpf_Settings::get(Pap_Settings::IMPRESSIONS_TABLE_PROCESS); $this->processAllImpressions(); $this->debug('All impressions from '.Pap_Db_Table_RawImpressions::getName($this->processedTableIndex).'. processed'); Pap_Db_Table_RawImpressions::getInstance($this->processedTableIndex)->truncate(); $this->switchTables(); $this->interrupt(30); }
protected function init() { $this->setTable(Pap_Db_Table_RawImpressions::getInstance($this->index)); parent::init(); }