src/Core/ShopConfig.php
public static function get($mShopId)
    {
        $sSQL = 'SELECT 1 FROM oxshops WHERE oxid = %s';
        $oDb = DatabaseProvider::getDb();

        if (!$oDb->getOne(sprintf($sSQL, $oDb->quote($mShopId)))) { // invalid shop id
            // Not using oxConfig::_isValidShopId() because its not static, but YES it should be
            return null;
        }

        return new ShopConfig($mShopId);
    }
public static function get($mShopId)
    {
        $sSQL = 'SELECT 1 FROM oxshops WHERE oxid = %s';
        $oDb = DatabaseProvider::getDb();

        if (!$oDb->getOne(sprintf($sSQL, $oDb->quote($mShopId)))) { // invalid shop id
            // Not using oxConfig::_isValidShopId() because its not static, but YES it should be
            return null;
        }

        return new ShopConfig($mShopId);
    }
public static function get ( $ mShopId ) { $ sSQL = 'SELECT 1 FROM oxshops WHERE oxid = %s' ; $ oDb = DatabaseProvider :: getDb ( ) ; if ( ! $ oDb -> getOne ( sprintf ( $ sSQL , $ oDb -> quote ( $ mShopId ) ) ) ) { // invalid shop id // Not using oxConfig::_isValidShopId() because its not static, but YES it should be return null ; } return new ShopConfig ( $ mShopId ) ; }
Get config object of given shop id

@param string|integer $mShopId

@return ShopConfig|null
Get config object of given shop id