source/Application/Controller/Admin/GenericImportMain.php
protected function _getCsvFieldsNames()
    {
        $blCsvContainsHeader = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('blContainsHeader');
        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('blCsvContainsHeader', $blCsvContainsHeader);
        $this->_getUploadedCsvFilePath();

        $aFirstRow = $this->_getCsvFirstRow();

        if (!$blCsvContainsHeader) {
            $iIndex = 1;
            foreach ($aFirstRow as $sValue) {
                $aCsvFields[$iIndex] = 'Column ' . $iIndex++;
            }
        } else {
            foreach ($aFirstRow as $sKey => $sValue) {
                $aFirstRow[$sKey] = \OxidEsales\Eshop\Core\Str::getStr()->htmlentities($sValue);
            }

            $aCsvFields = $aFirstRow;
        }

        return $aCsvFields;
    }
protected function _getCsvFieldsNames()
    {
        $blCsvContainsHeader = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('blContainsHeader');
        \OxidEsales\Eshop\Core\Registry::getSession()->setVariable('blCsvContainsHeader', $blCsvContainsHeader);
        $this->_getUploadedCsvFilePath();

        $aFirstRow = $this->_getCsvFirstRow();

        if (!$blCsvContainsHeader) {
            $iIndex = 1;
            foreach ($aFirstRow as $sValue) {
                $aCsvFields[$iIndex] = 'Column ' . $iIndex++;
            }
        } else {
            foreach ($aFirstRow as $sKey => $sValue) {
                $aFirstRow[$sKey] = \OxidEsales\Eshop\Core\Str::getStr()->htmlentities($sValue);
            }

            $aCsvFields = $aFirstRow;
        }

        return $aCsvFields;
    }
protected function _getCsvFieldsNames ( ) { $ blCsvContainsHeader = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'blContainsHeader' ) ; \ OxidEsales \ Eshop \ Core \ Registry :: getSession ( ) -> setVariable ( 'blCsvContainsHeader' , $ blCsvContainsHeader ) ; $ this -> _getUploadedCsvFilePath ( ) ; $ aFirstRow = $ this -> _getCsvFirstRow ( ) ; if ( ! $ blCsvContainsHeader ) { $ iIndex = 1 ; foreach ( $ aFirstRow as $ sValue ) { $ aCsvFields [ $ iIndex ] = 'Column ' . $ iIndex ++ ; } } else { foreach ( $ aFirstRow as $ sKey => $ sValue ) { $ aFirstRow [ $ sKey ] = \ OxidEsales \ Eshop \ Core \ Str :: getStr ( ) -> htmlentities ( $ sValue ) ; } $ aCsvFields = $ aFirstRow ; } return $ aCsvFields ; }
Get columns names from CSV file header. If file has no header
returns default columns names Column 1, Column 2..

@return array
Get columns names from CSV file header . If file has no header returns default columns names Column 1 Column 2 ..