source/Application/Model/Shop.php
protected function _getViewSelectMultilang($sTable)
    {
        $aFields = [];

        $oMetaData = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $aTables = array_merge([$sTable], $oMetaData->getAllMultiTables($sTable));
        foreach ($aTables as $sTableKey => $sTableName) {
            $aTableFields = $oMetaData->getFields($sTableName);
            foreach ($aTableFields as $sCoreField => $sField) {
                if (!isset($aFields[$sCoreField])) {
                    $aFields[$sCoreField] = $sField;
                }
            }
        }

        return implode(',', $aFields);
    }
protected function _getViewSelectMultilang($sTable)
    {
        $aFields = [];

        $oMetaData = oxNew(\OxidEsales\Eshop\Core\DbMetaDataHandler::class);
        $aTables = array_merge([$sTable], $oMetaData->getAllMultiTables($sTable));
        foreach ($aTables as $sTableKey => $sTableName) {
            $aTableFields = $oMetaData->getFields($sTableName);
            foreach ($aTableFields as $sCoreField => $sField) {
                if (!isset($aFields[$sCoreField])) {
                    $aFields[$sCoreField] = $sField;
                }
            }
        }

        return implode(',', $aFields);
    }
protected function _getViewSelectMultilang ( $ sTable ) { $ aFields = [ ] ; $ oMetaData = oxNew ( \ OxidEsales \ Eshop \ Core \ DbMetaDataHandler :: class ) ; $ aTables = array_merge ( [ $ sTable ] , $ oMetaData -> getAllMultiTables ( $ sTable ) ) ; foreach ( $ aTables as $ sTableKey => $ sTableName ) { $ aTableFields = $ oMetaData -> getFields ( $ sTableName ) ; foreach ( $ aTableFields as $ sCoreField => $ sField ) { if ( ! isset ( $ aFields [ $ sCoreField ] ) ) { $ aFields [ $ sCoreField ] = $ sField ; } } } return implode ( ',' , $ aFields ) ; }
Returns table fields sql section for multiple language views

@param string $sTable table name

@return string
Returns table fields sql section for multiple language views