original_string: public function process_assignfeedback_comments_grade($data) {
          global $DB;
  
          $data = (object)$data;
          $data->assignment = $this->get_new_parentid('assign');
          $oldgradeid = $data->grade;
          // The mapping is set in the restore for the core assign activity
          // when a grade node is processed.
          $data->grade = $this->get_mappingid('grade', $data->grade);
  
          $DB->insert_record('assignfeedback_comments', $data);
  
          $this->add_related_files(
              'assignfeedback_comments',
              'feedback',
              'grade',
              null,
              $oldgradeid
          );
      }
code: public function process_assignfeedback_comments_grade($data) {
          global $DB;
  
          $data = (object)$data;
          $data->assignment = $this->get_new_parentid('assign');
          $oldgradeid = $data->grade;
          // The mapping is set in the restore for the core assign activity
          // when a grade node is processed.
          $data->grade = $this->get_mappingid('grade', $data->grade);
  
          $DB->insert_record('assignfeedback_comments', $data);
  
          $this->add_related_files(
              'assignfeedback_comments',
              'feedback',
              'grade',
              null,
              $oldgradeid
          );
      }
code_tokens: public function process_assignfeedback_comments_grade ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ data -> assignment = $ this -> get_new_parentid ( 'assign' ) ; $ oldgradeid = $ data -> grade ; // The mapping is set in the restore for the core assign activity // when a grade node is processed. $ data -> grade = $ this -> get_mappingid ( 'grade' , $ data -> grade ) ; $ DB -> insert_record ( 'assignfeedback_comments' , $ data ) ; $ this -> add_related_files ( 'assignfeedback_comments' , 'feedback' , 'grade' , null , $ oldgradeid ) ; }
docstring: Processes one feedback_comments element.
  @param mixed $data
docstring_tokens: Processes one feedback_comments element .