public function setArray(array $data)
    {
        foreach ($data as $key => $value)
        {
            array_set($this->settings,$key,$value);
        }

        $this->save($this->path, $this->filename);
        $this->load($this->path, $this->filename);
    }
public function setArray(array $data)
    {
        foreach ($data as $key => $value)
        {
            array_set($this->settings,$key,$value);
        }

        $this->save($this->path, $this->filename);
        $this->load($this->path, $this->filename);
    }
public function setArray ( array $ data ) { foreach ( $ data as $ key => $ value ) { array_set ( $ this -> settings , $ key , $ value ) ; } $ this -> save ( $ this -> path , $ this -> filename ) ; $ this -> load ( $ this -> path , $ this -> filename ) ; }
This will mass assign data to the Setting
@param array $data
This will mass assign data to the Setting