public function triggerImport($batchImport = false) { $importInfo = Import_Queue_Controller::getImportInfo($this->userInputObject->get('module'), $this->user); $importDataController = new Import_Data_Controller($importInfo, $this->user); if (!$batchImport) { if (!$importDataController->initializeImport()) { Import_Utils::showErrorPage(getTranslatedString('ERR_FAILED_TO_LOCK_MODULE', 'Import')); exit; } } $importDataController->importData(); Import_Queue_Controller::updateStatus($importInfo['id'], Import_Queue_Controller::$IMPORT_STATUS_HALTED); $importInfo = Import_Queue_Controller::getImportInfo($this->userInputObject->get('module'), $this->user); self::showImportStatus($importInfo, $this->user); }