source/Application/Controller/Admin/GenericImportMain.php
protected function _getCsvFirstRow()
    {
        $sPath = $this->_getUploadedCsvFilePath();
        $iMaxLineLength = 8192;

        //getting first row
        if (($rFile = @fopen($sPath, "r")) !== false) {
            $aRow = fgetcsv($rFile, $iMaxLineLength, $this->_getCsvFieldsTerminator(), $this->_getCsvFieldsEncolser());
            fclose($rFile);
        }

        return $aRow;
    }
protected function _getCsvFirstRow()
    {
        $sPath = $this->_getUploadedCsvFilePath();
        $iMaxLineLength = 8192;

        //getting first row
        if (($rFile = @fopen($sPath, "r")) !== false) {
            $aRow = fgetcsv($rFile, $iMaxLineLength, $this->_getCsvFieldsTerminator(), $this->_getCsvFieldsEncolser());
            fclose($rFile);
        }

        return $aRow;
    }
protected function _getCsvFirstRow ( ) { $ sPath = $ this -> _getUploadedCsvFilePath ( ) ; $ iMaxLineLength = 8192 ; //getting first row if ( ( $ rFile = @ fopen ( $ sPath , "r" ) ) !== false ) { $ aRow = fgetcsv ( $ rFile , $ iMaxLineLength , $ this -> _getCsvFieldsTerminator ( ) , $ this -> _getCsvFieldsEncolser ( ) ) ; fclose ( $ rFile ) ; } return $ aRow ; }
Get first row from uploaded CSV file

@return array
Get first row from uploaded CSV file