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);
    }
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);
    }
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 ) ; }
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
Processes level element data