original_string: public function update($setting, $value){
          if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
              $this->set($setting, $value);
          }
          return $this;
      }
code: public function update($setting, $value){
          if($this->db->update($this->table_config, array('value' => $value), array('setting' => $setting))){
              $this->set($setting, $value);
          }
          return $this;
      }
code_tokens: public function update ( $ setting , $ value ) { if ( $ this -> db -> update ( $ this -> table_config , array ( 'value' => $ value ) , array ( 'setting' => $ setting ) ) ) { $ this -> set ( $ setting , $ value ) ; } return $ this ; }
docstring: 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
docstring_tokens: Set a setting in the database