Exemple #1
0
 /**
  * Cancel
  *
  * @return void
  */
 protected function doActionCancel()
 {
     if ($this->getImporter()->getOptions()->clearImportDir) {
         $this->getImporter()->deleteAllFiles();
     }
     if (\XLite\Logic\Import\Importer::hasErrors() || \XLite\Logic\Import\Importer::hasWarnings()) {
         \XLite\Logic\Import\Importer::userBreak();
     } else {
         \XLite\Logic\Import\Importer::cancel();
         \XLite\Core\TopMessage::addWarning('Import has been cancelled.');
     }
 }