overwriteWithDefaultShopValues example

use Enlight_Config;
use Enlight_Config_Adapter_DbTable;

class DbAdapter extends Enlight_Config_Adapter_DbTable
{
    /** * {@inheritdoc} */
    public function write(Enlight_Config $config$fields = null, $update = true, $force = false, $allowReset = false)
    {
        $this->overwriteWithDefaultShopValues($config);

        return parent::write($config$fields$update$force$allowReset);
    }

    /** * If there is a snippet missing, set the shopID and localeID to the main shop since all * language shops derive from it. */
    private function overwriteWithDefaultShopValues(Enlight_Config $config): void
    {
        $section = explode($config->getSectionSeparator()$config->getSection());
        
Home | Imprint | This part of the site doesn't use cookies.