public function update($setting, $value){
        if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
            $this->set($setting, $value);
        }
        return $this;
    }
public function update($setting, $value){
        if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
            $this->set($setting, $value);
        }
        return $this;
    }
public function update ( $ setting , $ value ) { if ( $ this -> db -> update ( $ this -> table_config , array ( 'value' => $ value ) , array ( 'setting' => $ setting ) ) ) { $ this -> set ( $ setting , $ value ) ; } return $ this ; }
Set a setting in the database
@param string $setting This should be the setting name
@param mixed $value The new value for the setting should be added here
@return $this
Set a setting in the database