public function save_settings(stdClass $data) {
        if (empty($data->assignsubmission_onlinetext_wordlimit) || empty($data->assignsubmission_onlinetext_wordlimit_enabled)) {
            $wordlimit = 0;
            $wordlimitenabled = 0;
        } else {
            $wordlimit = $data->assignsubmission_onlinetext_wordlimit;
            $wordlimitenabled = 1;
        }

        $this->set_config('wordlimit', $wordlimit);
        $this->set_config('wordlimitenabled', $wordlimitenabled);

        return true;
    }
public function save_settings(stdClass $data) {
        if (empty($data->assignsubmission_onlinetext_wordlimit) || empty($data->assignsubmission_onlinetext_wordlimit_enabled)) {
            $wordlimit = 0;
            $wordlimitenabled = 0;
        } else {
            $wordlimit = $data->assignsubmission_onlinetext_wordlimit;
            $wordlimitenabled = 1;
        }

        $this->set_config('wordlimit', $wordlimit);
        $this->set_config('wordlimitenabled', $wordlimitenabled);

        return true;
    }
public function save_settings ( stdClass $ data ) { if ( empty ( $ data -> assignsubmission_onlinetext_wordlimit ) || empty ( $ data -> assignsubmission_onlinetext_wordlimit_enabled ) ) { $ wordlimit = 0 ; $ wordlimitenabled = 0 ; } else { $ wordlimit = $ data -> assignsubmission_onlinetext_wordlimit ; $ wordlimitenabled = 1 ; } $ this -> set_config ( 'wordlimit' , $ wordlimit ) ; $ this -> set_config ( 'wordlimitenabled' , $ wordlimitenabled ) ; return true ; }
Save the settings for onlinetext submission plugin

@param stdClass $data
@return bool
Save the settings for onlinetext submission plugin