source/Core/TableViewNameGenerator.php
public function getViewName($table, $languageId = null, $shopId = null)
    {
        $config = $this->getConfig();

        if (!$config->getConfigParam('blSkipViewUsage')) {
            $language = $this->getLanguage();
            $languageId = $languageId !== null ? $languageId : $language->getBaseLanguage();
            $shopId = $shopId !== null ? $shopId : $config->getShopId();
            $isMultiLang = in_array($table, $language->getMultiLangTables());
            $viewSuffix = $this->getViewSuffix($table, $languageId, $shopId, $isMultiLang);

            if ($viewSuffix || (($languageId == -1 || $shopId == -1) && $isMultiLang)) {
                return "oxv_{$table}{$viewSuffix}";
            }
        }

        return $table;
    }
public function getViewName($table, $languageId = null, $shopId = null)
    {
        $config = $this->getConfig();

        if (!$config->getConfigParam('blSkipViewUsage')) {
            $language = $this->getLanguage();
            $languageId = $languageId !== null ? $languageId : $language->getBaseLanguage();
            $shopId = $shopId !== null ? $shopId : $config->getShopId();
            $isMultiLang = in_array($table, $language->getMultiLangTables());
            $viewSuffix = $this->getViewSuffix($table, $languageId, $shopId, $isMultiLang);

            if ($viewSuffix || (($languageId == -1 || $shopId == -1) && $isMultiLang)) {
                return "oxv_{$table}{$viewSuffix}";
            }
        }

        return $table;
    }
public function getViewName ( $ table , $ languageId = null , $ shopId = null ) { $ config = $ this -> getConfig ( ) ; if ( ! $ config -> getConfigParam ( 'blSkipViewUsage' ) ) { $ language = $ this -> getLanguage ( ) ; $ languageId = $ languageId !== null ? $ languageId : $ language -> getBaseLanguage ( ) ; $ shopId = $ shopId !== null ? $ shopId : $ config -> getShopId ( ) ; $ isMultiLang = in_array ( $ table , $ language -> getMultiLangTables ( ) ) ; $ viewSuffix = $ this -> getViewSuffix ( $ table , $ languageId , $ shopId , $ isMultiLang ) ; if ( $ viewSuffix || ( ( $ languageId == - 1 || $ shopId == - 1 ) && $ isMultiLang ) ) { return "oxv_{$table}{$viewSuffix}" ; } } return $ table ; }
Return the view name of the given table if a view exists, otherwise the table name itself.
Views usage can be disabled with blSkipViewUsage config option in case admin area is not reachable
due to broken views, so that they could be regenerated.

@param string $table      Table name
@param int    $languageId Language id [optional]
@param string $shopId     Shop id, otherwise config->getShopId() is used [optional]

@return string
Return the view name of the given table if a view exists otherwise the table name itself . Views usage can be disabled with blSkipViewUsage config option in case admin area is not reachable due to broken views so that they could be regenerated .