public function import() { if ($this->getError()) { $this->saveImportLog(); return; } $this->collectItems(); if ($this->getError()) { $this->saveImportLog(); return; } $this->collectItemData(); if ($this->getError()) { $this->saveImportLog(); return; } if ($this->isFinishedImport()) { $this->itemCollector->setItemLogFinish(); } $this->saveImportLog(); parent::import(); }