library/Services/ShopInstaller/ShopInstaller.php
private function insertConfigValue($type, $name, $value)
    {
        $dbHandler = $this->getDbHandler();
        $shopId = 1;
        $oxid = md5("${name}_1");

        $dbHandler->query("DELETE from oxconfig WHERE oxvarname = '$name';");
        $dbHandler->query("REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
            ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));");
        if ($this->getServiceConfig()->getShopEdition() == EditionSelector::ENTERPRISE) {
            $oxid = md5("${name}_subshop");
            $shopId = 2;
            $dbHandler->query("REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
                ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));");
        }
    }
private function insertConfigValue($type, $name, $value)
    {
        $dbHandler = $this->getDbHandler();
        $shopId = 1;
        $oxid = md5("${name}_1");

        $dbHandler->query("DELETE from oxconfig WHERE oxvarname = '$name';");
        $dbHandler->query("REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
            ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));");
        if ($this->getServiceConfig()->getShopEdition() == EditionSelector::ENTERPRISE) {
            $oxid = md5("${name}_subshop");
            $shopId = 2;
            $dbHandler->query("REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
                ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));");
        }
    }
private function insertConfigValue ( $ type , $ name , $ value ) { $ dbHandler = $ this -> getDbHandler ( ) ; $ shopId = 1 ; $ oxid = md5 ( "${name}_1" ) ; $ dbHandler -> query ( "DELETE from oxconfig WHERE oxvarname = '$name';" ) ; $ dbHandler -> query ( "REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
            ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));" ) ; if ( $ this -> getServiceConfig ( ) -> getShopEdition ( ) == EditionSelector :: ENTERPRISE ) { $ oxid = md5 ( "${name}_subshop" ) ; $ shopId = 2 ; $ dbHandler -> query ( "REPLACE INTO `oxconfig` (`OXID`, `OXSHOPID`, `OXMODULE`, `OXVARNAME`, `OXVARTYPE`, `OXVARVALUE`) VALUES
                ('$oxid', $shopId, '', '$name', '$type', ENCODE('{$value}','{$this->getConfigKey()}'));" ) ; } }
Insert new configuration value to database.

@param string $type
@param string $name
@param string $value
Insert new configuration value to database .