source/Core/Module/ModuleVariablesLocator.php
protected function getModuleVarFromDB($name)
    {
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();

        $shopId = $this->getShopIdCalculator()->getShopId();
        $configKey = $this->getConfigurationKey();

        $query = "SELECT DECODE( oxvarvalue , ? ) FROM oxconfig WHERE oxvarname = ? AND oxshopid = ?";

        $value = $masterDb->getOne($query, [$configKey, $name, $shopId]);

        return unserialize($value);
    }
protected function getModuleVarFromDB($name)
    {
        // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804).
        $masterDb = \OxidEsales\Eshop\Core\DatabaseProvider::getMaster();

        $shopId = $this->getShopIdCalculator()->getShopId();
        $configKey = $this->getConfigurationKey();

        $query = "SELECT DECODE( oxvarvalue , ? ) FROM oxconfig WHERE oxvarname = ? AND oxshopid = ?";

        $value = $masterDb->getOne($query, [$configKey, $name, $shopId]);

        return unserialize($value);
    }
protected function getModuleVarFromDB ( $ name ) { // We force reading from master to prevent issues with slow replications or open transactions (see ESDEV-3804). $ masterDb = \ OxidEsales \ Eshop \ Core \ DatabaseProvider :: getMaster ( ) ; $ shopId = $ this -> getShopIdCalculator ( ) -> getShopId ( ) ; $ configKey = $ this -> getConfigurationKey ( ) ; $ query = "SELECT DECODE( oxvarvalue , ? ) FROM oxconfig WHERE oxvarname = ? AND oxshopid = ?" ; $ value = $ masterDb -> getOne ( $ query , [ $ configKey , $ name , $ shopId ] ) ; return unserialize ( $ value ) ; }
Returns shop module variable value directly from database.

@param string $name Module variable name

@return string
Returns shop module variable value directly from database .