original_string: protected function process_assign_plugin_config($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->assignment = $this->get_new_parentid('assign');
  
          $newitemid = $DB->insert_record('assign_plugin_config', $data);
      }
code: protected function process_assign_plugin_config($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->assignment = $this->get_new_parentid('assign');
  
          $newitemid = $DB->insert_record('assign_plugin_config', $data);
      }
code_tokens: protected function process_assign_plugin_config ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> assignment = $ this -> get_new_parentid ( 'assign' ) ; $ newitemid = $ DB -> insert_record ( 'assign_plugin_config' , $ data ) ; }
docstring: Process a plugin-config restore
  @param object $data The data in object form
  @return void
docstring_tokens: Process a plugin - config restore