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
        );
    }
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
        );
    }
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 ) ; }
Processes one feedback_comments element.
@param mixed $data
Processes one feedback_comments element .