public function setAll(array $settings)
    {
        foreach ($settings as $name => $value) {
            if (is_string($name) && $this->exists($name)) { // avoid the logic exception
                $this->set($name, $value);
            }
        }
    }
public function setAll(array $settings)
    {
        foreach ($settings as $name => $value) {
            if (is_string($name) && $this->exists($name)) { // avoid the logic exception
                $this->set($name, $value);
            }
        }
    }
public function setAll ( array $ settings ) { foreach ( $ settings as $ name => $ value ) { if ( is_string ( $ name ) && $ this -> exists ( $ name ) ) { // avoid the logic exception $ this -> set ( $ name , $ value ) ; } } }
Set an array of settings, ignores non existent or non-string-key elements

@param array $settings
Set an array of settings ignores non existent or non - string - key elements