concrete/src/Csv/Import/AbstractImporter.php
public function process($dataRowsToSkip = 0, $maxDataRows = null, $collectData = false)
    {
        $result = $this->app->make(ImportResult::class);
        if ($this->processHeader($result)) {
            if ($this->dryRun !== false) {
                // Let's start a transaction. It shouldn't be necessary, but it doesn't cost a penny ;)
                $this->entityManager->getConnection()->beginTransaction();
            }
            try {
                $this->processData($result, $dataRowsToSkip, $maxDataRows, $collectData);
            } finally {
                if ($this->dryRun !== false) {
                    try {
                        $this->entityManager->getConnection()->rollBack();
                    } catch (Exception $foo) {
                    }
                }
            }
        }

        return $result;
    }
public function process($dataRowsToSkip = 0, $maxDataRows = null, $collectData = false)
    {
        $result = $this->app->make(ImportResult::class);
        if ($this->processHeader($result)) {
            if ($this->dryRun !== false) {
                // Let's start a transaction. It shouldn't be necessary, but it doesn't cost a penny ;)
                $this->entityManager->getConnection()->beginTransaction();
            }
            try {
                $this->processData($result, $dataRowsToSkip, $maxDataRows, $collectData);
            } finally {
                if ($this->dryRun !== false) {
                    try {
                        $this->entityManager->getConnection()->rollBack();
                    } catch (Exception $foo) {
                    }
                }
            }
        }

        return $result;
    }
public function process ( $ dataRowsToSkip = 0 , $ maxDataRows = null , $ collectData = false ) { $ result = $ this -> app -> make ( ImportResult :: class ) ; if ( $ this -> processHeader ( $ result ) ) { if ( $ this -> dryRun !== false ) { // Let's start a transaction. It shouldn't be necessary, but it doesn't cost a penny ;) $ this -> entityManager -> getConnection ( ) -> beginTransaction ( ) ; } try { $ this -> processData ( $ result , $ dataRowsToSkip , $ maxDataRows , $ collectData ) ; } finally { if ( $ this -> dryRun !== false ) { try { $ this -> entityManager -> getConnection ( ) -> rollBack ( ) ; } catch ( Exception $ foo ) { } } } } return $ result ; }
Process the CSV data.

@param int $dataRowsToSkip the number of data rows to be skipped
@param int|null $maxDataRows the maximum number of data rows to be processed
@param bool|int $collectData Set to false to not collect the imported data, to true to collect the all the imported data, or a number to limit the data to collect

@return ImportResult
Process the CSV data .