original_string: public function save_settings(stdClass $data) {
          $this->set_config('maxfilesubmissions', $data->assignsubmission_file_maxfiles);
          $this->set_config('maxsubmissionsizebytes', $data->assignsubmission_file_maxsizebytes);
  
          if (!empty($data->assignsubmission_file_filetypes)) {
              $this->set_config('filetypeslist', $data->assignsubmission_file_filetypes);
          } else {
              $this->set_config('filetypeslist', '');
          }
  
          return true;
      }
code: public function save_settings(stdClass $data) {
          $this->set_config('maxfilesubmissions', $data->assignsubmission_file_maxfiles);
          $this->set_config('maxsubmissionsizebytes', $data->assignsubmission_file_maxsizebytes);
  
          if (!empty($data->assignsubmission_file_filetypes)) {
              $this->set_config('filetypeslist', $data->assignsubmission_file_filetypes);
          } else {
              $this->set_config('filetypeslist', '');
          }
  
          return true;
      }
code_tokens: public function save_settings ( stdClass $ data ) { $ this -> set_config ( 'maxfilesubmissions' , $ data -> assignsubmission_file_maxfiles ) ; $ this -> set_config ( 'maxsubmissionsizebytes' , $ data -> assignsubmission_file_maxsizebytes ) ; if ( ! empty ( $ data -> assignsubmission_file_filetypes ) ) { $ this -> set_config ( 'filetypeslist' , $ data -> assignsubmission_file_filetypes ) ; } else { $ this -> set_config ( 'filetypeslist' , '' ) ; } return true ; }
docstring: Save the settings for file submission plugin
  
  @param stdClass $data
  @return bool
docstring_tokens: Save the settings for file submission plugin