public function saveConfigurationArray($config, $apply = true)
    {
        if ($this->ignoreIfDefault && $this->attributes) {
            foreach ($this->attributes as $key=>$default) {
                if (isset($config[$key]) && $config[$key]==$default) {
                    unset($config[$key]);
                }
            }
        }
        if ($this->_keyStorage->set($this->getKey(), $config))
        {
            if ($apply) {
                $this->_configuration = null;
                $this->configure();
            }
            return true;
        } else {
            return false;
        }
    }
public function saveConfigurationArray($config, $apply = true)
    {
        if ($this->ignoreIfDefault && $this->attributes) {
            foreach ($this->attributes as $key=>$default) {
                if (isset($config[$key]) && $config[$key]==$default) {
                    unset($config[$key]);
                }
            }
        }
        if ($this->_keyStorage->set($this->getKey(), $config))
        {
            if ($apply) {
                $this->_configuration = null;
                $this->configure();
            }
            return true;
        } else {
            return false;
        }
    }
public function saveConfigurationArray ( $ config , $ apply = true ) { if ( $ this -> ignoreIfDefault && $ this -> attributes ) { foreach ( $ this -> attributes as $ key => $ default ) { if ( isset ( $ config [ $ key ] ) && $ config [ $ key ] == $ default ) { unset ( $ config [ $ key ] ) ; } } } if ( $ this -> _keyStorage -> set ( $ this -> getKey ( ) , $ config ) ) { if ( $ apply ) { $ this -> _configuration = null ; $ this -> configure ( ) ; } return true ; } else { return false ; } }
Save array config
@param mixed $config
@param bool $apply
@return bool
Save array config