source/Core/Config.php
public function getShopConfVar($varName, $shopId = null, $module = '')
    {
        if (!$shopId) {
            $shopId = $this->getShopId();
        }

        if ($shopId == $this->getShopId() && (!$module || $module == Config::OXMODULE_THEME_PREFIX . $this->getConfigParam('sTheme'))) {
            $varValue = $this->getConfigParam($varName);
            if ($varValue !== null) {
                return $varValue;
            }
        }

        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $query = "select oxvartype, " . $this->getDecodeValueQuery() . " as oxvarvalue from oxconfig where oxshopid = '{$shopId}' and oxmodule = '{$module}' and oxvarname = " . $db->quote($varName);
        $rs = $db->select($query);

        if ($rs != false && $rs->count() > 0) {
            return $this->decodeValue($rs->fields['oxvartype'], $rs->fields['oxvarvalue']);
        }
    }
public function getShopConfVar($varName, $shopId = null, $module = '')
    {
        if (!$shopId) {
            $shopId = $this->getShopId();
        }

        if ($shopId == $this->getShopId() && (!$module || $module == Config::OXMODULE_THEME_PREFIX . $this->getConfigParam('sTheme'))) {
            $varValue = $this->getConfigParam($varName);
            if ($varValue !== null) {
                return $varValue;
            }
        }

        $db = \OxidEsales\Eshop\Core\DatabaseProvider::getDb(\OxidEsales\Eshop\Core\DatabaseProvider::FETCH_MODE_ASSOC);

        $query = "select oxvartype, " . $this->getDecodeValueQuery() . " as oxvarvalue from oxconfig where oxshopid = '{$shopId}' and oxmodule = '{$module}' and oxvarname = " . $db->quote($varName);
        $rs = $db->select($query);

        if ($rs != false && $rs->count() > 0) {
            return $this->decodeValue($rs->fields['oxvartype'], $rs->fields['oxvarvalue']);
        }
    }
public function getShopConfVar ( $ varName , $ shopId = null , $ module = '' ) { if ( ! $ shopId ) { $ shopId = $ this -> getShopId ( ) ; } if ( $ shopId == $ this -> getShopId ( ) && ( ! $ module || $ module == Config :: OXMODULE_THEME_PREFIX . $ this -> getConfigParam ( 'sTheme' ) ) ) { $ varValue = $ this -> getConfigParam ( $ varName ) ; if ( $ varValue !== null ) { return $ varValue ; } } $ db = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getDb ( \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: FETCH_MODE_ASSOC ) ; $ query = "select oxvartype, " . $ this -> getDecodeValueQuery ( ) . " as oxvarvalue from oxconfig where oxshopid = '{$shopId}' and oxmodule = '{$module}' and oxvarname = " . $ db -> quote ( $ varName ) ; $ rs = $ db -> select ( $ query ) ; if ( $ rs != false && $ rs -> count ( ) > 0 ) { return $ this -> decodeValue ( $ rs -> fields [ 'oxvartype' ] , $ rs -> fields [ 'oxvarvalue' ] ) ; } }
Retrieves shop configuration parameters from DB.

@param string $varName Variable name
@param string $shopId  Shop ID
@param string $module  module identifier

@return object - raw configuration value in DB
Retrieves shop configuration parameters from DB .