public function process_gradingform_guide_criterion($data) {
        global $DB;

        $data = (object)$data;
        $oldid = $data->id;
        $data->definitionid = $this->get_new_parentid('grading_definition');

        $newid = $DB->insert_record('gradingform_guide_criteria', $data);
        $this->set_mapping('gradingform_guide_criterion', $oldid, $newid);
    }
public function process_gradingform_guide_criterion($data) {
        global $DB;

        $data = (object)$data;
        $oldid = $data->id;
        $data->definitionid = $this->get_new_parentid('grading_definition');

        $newid = $DB->insert_record('gradingform_guide_criteria', $data);
        $this->set_mapping('gradingform_guide_criterion', $oldid, $newid);
    }
public function process_gradingform_guide_criterion ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> definitionid = $ this -> get_new_parentid ( 'grading_definition' ) ; $ newid = $ DB -> insert_record ( 'gradingform_guide_criteria' , $ data ) ; $ this -> set_mapping ( 'gradingform_guide_criterion' , $ oldid , $ newid ) ; }
Processes criterion element data

Sets the mapping 'gradingform_guide_criterion' to be used later by
{@link self::process_gradinform_guide_filling()}

@param array|stdClass $data
Processes criterion element data