public function save(array $fieldList, $validate = true)
    {
        $this->logger->debug('# setSettings save start');

        if ($validate) {
            $this->validate($fieldList);
        }

        foreach ($fieldList as $property) {
            if (in_array($property, $this->blacklistConfig, true)) {
                continue;
            }

            if (isset($this->configMapping[$property])) {
                $config =
                    $this->sgCoreConfig->getSaveScope($this->configMapping[$property], $this->getShopNumber());
                $this->saveField(
                    $this->configMapping[$property],
                    $property,
                    $config->getScope(),
                    $config->getScopeId()
                );
            }
        }

        $this->clearCache();
        $this->logger->debug('# setSettings save end');
    }
public function save(array $fieldList, $validate = true)
    {
        $this->logger->debug('# setSettings save start');

        if ($validate) {
            $this->validate($fieldList);
        }

        foreach ($fieldList as $property) {
            if (in_array($property, $this->blacklistConfig, true)) {
                continue;
            }

            if (isset($this->configMapping[$property])) {
                $config =
                    $this->sgCoreConfig->getSaveScope($this->configMapping[$property], $this->getShopNumber());
                $this->saveField(
                    $this->configMapping[$property],
                    $property,
                    $config->getScope(),
                    $config->getScopeId()
                );
            }
        }

        $this->clearCache();
        $this->logger->debug('# setSettings save end');
    }
public function save ( array $ fieldList , $ validate = true ) { $ this -> logger -> debug ( '# setSettings save start' ) ; if ( $ validate ) { $ this -> validate ( $ fieldList ) ; } foreach ( $ fieldList as $ property ) { if ( in_array ( $ property , $ this -> blacklistConfig , true ) ) { continue ; } if ( isset ( $ this -> configMapping [ $ property ] ) ) { $ config = $ this -> sgCoreConfig -> getSaveScope ( $ this -> configMapping [ $ property ] , $ this -> getShopNumber ( ) ) ; $ this -> saveField ( $ this -> configMapping [ $ property ] , $ property , $ config -> getScope ( ) , $ config -> getScopeId ( ) ) ; } } $ this -> clearCache ( ) ; $ this -> logger -> debug ( '# setSettings save end' ) ; }
Writes the given fields to magento

@param array   $fieldList
@param boolean $validate

@throws \Exception
@throws \ShopgateLibraryException
Writes the given fields to magento