protected function execute() { $this->logger->debug('IMPORT STARTED'); $this->delimiter = Gpf_Csv_ImportExportService::getDelimiter($this->form->getFieldValue("delimiter")); $this->codes = preg_split("/,/", $this->form->getFieldValue("dropModules")); $this->importObjects = Gpf_Db_ImportExport::getImportExportObjects(); $fileUrl = $this->form->getFieldValue("fileName"); if ($this->isPending($fileUrl, $this->_('Check file'))) { $this->checkFile($fileUrl); } $this->sendToImportObjects($fileUrl); $this->logger->debug('IMPORT ENDED'); }
private function getDataTypes() { $dataTypes = ""; foreach ($this->codes as $code) { $dataTypes .= $this->_localize(Gpf_Db_ImportExport::getNameFromCode($code)) . ","; } return substr($dataTypes, 0, -1); }