. */ namespace SP\Import; use SP\Core\Exceptions\SPException; defined('APP_ROOT') || die(); /** * Class CsvImport para importar cuentas desde archivos CSV * * @package SP */ class CsvImport extends CsvImportBase { /** * Iniciar la importación desde XML. * * @throws \SP\Core\Exceptions\SPException */ public function doImport() { try { $this->LogMessage->addDescription(sprintf(__('Formato detectado: %s'), 'CSV')); $this->file->readFileToArray(); $this->processAccounts(); } catch (SPException $e) { throw $e; } } }