Пример #1
0
 public function copyFromFileToDB()
 {
     $fileReader = Import_Utils_Helper::getFileReader($this->request, $this->user);
     $fileReader->read();
     $fileReader->deleteFile();
     if ($fileReader->getStatus() == 'success') {
         $this->numberOfRecords = $fileReader->getNumberOfRecordsRead();
         return true;
     } else {
         Import_Utils_Helper::showErrorPage(vtranslate('ERR_FILE_READ_FAILED', 'Import') . ' - ' . vtranslate($fileReader->getErrorMessage(), 'Import'));
         return false;
     }
 }