function restore($old_question_id, $new_question_id, $info, $restore) { if (parent::restore($old_question_id, $new_question_id, $info, $restore) !== false) { return wrsqz_restore('truefalse', 'wtrflsprom', $old_question_id, $new_question_id, $info,$restore); } return false; }
function restore($old_question_id, $new_question_id, $info, $restore) { if (parent::restore($old_question_id, $new_question_id, $info, $restore) !== false) { return wrsqz_restore('match', 'wmatprom', $old_question_id, $new_question_id, $info, $restore); } return false; }
function restore($old_question_id, $new_question_id, $info, $restore) { //We have to modify info structure before the parent class can restore from it. wrsqz_restore_1('shortanswer', 'wshanprom', $old_question_id, $new_question_id, $info, $restore); if (parent::restore($old_question_id, $new_question_id, $info, $restore) !== false) { return wrsqz_restore('shortanswer', 'wshanprom', $old_question_id, $new_question_id, $info, $restore); } return false; }