original_string: public function process_gradingform_rubric_level($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
          $data->criterionid = $this->get_new_parentid('gradingform_rubric_criterion');
  
          $newid = $DB->insert_record('gradingform_rubric_levels', $data);
          $this->set_mapping('gradingform_rubric_level', $oldid, $newid);
      }
code: public function process_gradingform_rubric_level($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
          $data->criterionid = $this->get_new_parentid('gradingform_rubric_criterion');
  
          $newid = $DB->insert_record('gradingform_rubric_levels', $data);
          $this->set_mapping('gradingform_rubric_level', $oldid, $newid);
      }
code_tokens: public function process_gradingform_rubric_level ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> criterionid = $ this -> get_new_parentid ( 'gradingform_rubric_criterion' ) ; $ newid = $ DB -> insert_record ( 'gradingform_rubric_levels' , $ data ) ; $ this -> set_mapping ( 'gradingform_rubric_level' , $ oldid , $ newid ) ; }
docstring: Processes level element data
  
  Sets the mapping 'gradingform_rubric_level' to be used later by
  {@link self::process_gradinform_rubric_filling()}
  
  @param stdClass|array $data
docstring_tokens: Processes level element data