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");
    }
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");
    }
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" ) ; }
Sets plugin config value
@param  string $name name of config
@param  string $value string config value, null means delete
@return string value
Sets plugin config value