base_id = (int) $sx_task_settings->base_id; parent::loadSettings($sx_task_settings); } protected function retrieveContent(appbox $appbox) { if ( ! $this->base_id) { $this->setState(self::STATE_STOPPED); return array(); } $collection = collection::get_from_base_id($this->base_id); $this->total_records = $collection->get_record_amount(); $collection->empty_collection(200); $this->records_done += $this->total_records; $this->setProgress($this->records_done, $this->total_records); if ($this->total_records == 0) { $this->setState(self::STATE_STOPPED); $this->log('Job finished'); } return array(); } protected function processOneContent(appbox $appbox, Array $row) { return $this; } protected function postProcessOneContent(appbox $appbox, Array $row) { return $this; } }