source/Application/Model/Shop.php
protected function _getViewSelect($sTable, $iLang)
    {
        $oMetaData = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $aFields = $oMetaData->getSinglelangFields($sTable, $iLang);
        foreach ($aFields as $sCoreField => $sField) {
            if ($sCoreField !== $sField) {
                $aFields[$sCoreField] = $sField . ' AS ' . $sCoreField;
            }
        }

        return implode(',', $aFields);
    }
protected function _getViewSelect($sTable, $iLang)
    {
        $oMetaData = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $aFields = $oMetaData->getSinglelangFields($sTable, $iLang);
        foreach ($aFields as $sCoreField => $sField) {
            if ($sCoreField !== $sField) {
                $aFields[$sCoreField] = $sField . ' AS ' . $sCoreField;
            }
        }

        return implode(',', $aFields);
    }
protected function _getViewSelect ( $ sTable , $ iLang ) { $ oMetaData = oxNew ( \ OxidEsales \ Eshop \ Core \ DbMetaDataHandler :: class ) ; $ aFields = $ oMetaData -> getSinglelangFields ( $ sTable , $ iLang ) ; foreach ( $ aFields as $ sCoreField => $ sField ) { if ( $ sCoreField !== $ sField ) { $ aFields [ $ sCoreField ] = $ sField . ' AS ' . $ sCoreField ; } } return implode ( ',' , $ aFields ) ; }
Returns table field name mapping sql section for single language views

@param string $sTable Table name
@param int    $iLang  Language id

@return string
Returns table field name mapping sql section for single language views