original_string: public function set_config($name, $value) {
          $pluginname = $this->get_name();
          $this->load_config();
          if ($value === NULL) {
              unset($this->config->$name);
          } else {
              $this->config->$name = $value;
          }
          set_config($name, $value, "enrol_$pluginname");
      }
code: public function set_config($name, $value) {
          $pluginname = $this->get_name();
          $this->load_config();
          if ($value === NULL) {
              unset($this->config->$name);
          } else {
              $this->config->$name = $value;
          }
          set_config($name, $value, "enrol_$pluginname");
      }
code_tokens: public function set_config ( $ name , $ value ) { $ pluginname = $ this -> get_name ( ) ; $ this -> load_config ( ) ; if ( $ value === NULL ) { unset ( $ this -> config -> $ name ) ; } else { $ this -> config -> $ name = $ value ; } set_config ( $ name , $ value , "enrol_$pluginname" ) ; }
docstring: Sets plugin config value
  @param  string $name name of config
  @param  string $value string config value, null means delete
  @return string value
docstring_tokens: Sets plugin config value