b667e698fd
MDL-13156 "insert_category_and_question_ids() function name can cause name conflicts" Fixed :
2008-01-25 07:01:18 +00:00
ede67707a6
MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little.
2008-01-18 14:49:59 +00:00
8cfd7faf10
Ensure links of the form /mod/quiz/view.php?q=332 are backed up and restored correctly.
2007-12-21 15:38:36 +00:00
27cabbe626
MDL-12575 - Backup and restore problems with the new question bank. Merged from MOODLE_19_STABLE.
2007-12-13 18:48:30 +00:00
1061756d8e
Minor whitespace fixup.
2007-11-07 15:41:20 +00:00
8df73369ce
MDL-11517 reserved word MOD used in table alias in questions backup code
2007-09-29 16:26:13 +00:00
c0ca082d2f
Remove spurious characters from some SQL statements.
2007-09-25 14:39:42 +00:00
b36e36aa05
removed all ASes from table aliases in question / quiz code - MDL-10344
2007-08-12 13:57:57 +00:00
271e6decda
merging MOODLE_19_QUESTIONS with HEAD
2007-08-09 21:51:09 +00:00
62f34fdb20
fix for some notices in insert_category_ids function.
2007-08-08 03:29:29 +00:00
5a56d93857
Clean up whitespace.
2007-04-25 15:37:01 +00:00
8745405435
MDL-4084 Backup all question categories in a course, not just the ones from which questions are used in a quiz. Merged from MOODLE_18_STABLE.
2007-03-20 15:06:48 +00:00
f274fe073c
Merged AS keyword fixes from stable MDL-7207
2006-10-25 09:04:25 +00:00
2559409081
Changes to dmllib seem to have broken quiz backup. This makes it work again. Merged from MOODLE_17_STABLE.
2006-10-16 14:54:55 +00:00
199e43d470
Fix Eclipse warnings.
2006-08-22 19:00:18 +00:00
212b7b8cd9
MDL-5270 - give students a feeback comment for their performance in the entire quiz.
...
Also, along the way I noticed and fixed MDL-6290 student grades not rescaled when quiz maximum grade changed.
2006-08-22 17:31:26 +00:00
c5d94c4150
Moved questiontype specific backup functions into questiontype classes
2006-03-21 18:15:09 +00:00
fe1106f0d1
Now the question backup code has been separated from the quiz backup code.
2006-03-21 16:50:42 +00:00
75cd257be8
Moved the quiz constants into lib.php to keep things simple.
2006-03-20 20:59:46 +00:00
c0749a1605
Fixed backup and restore for match questions
2006-03-19 09:50:43 +00:00
32a189d636
More renamings to separate questions from quiz. Some other small fixes.
2006-03-12 21:17:42 +00:00
dc1f00de19
Some little fixes and more renaming to cleanly separate question code from quiz code
...
Renaming tables:
quiz_answers -> question_answers
quiz_categories -> question_categories
Renaming functions:
quiz_get_category_menu -> question_category_menu
quiz_get_category_coursename -> question_category_coursename
quiz_categorylist -> question_categorylist
2006-03-01 07:03:57 +00:00
4f48fb42af
Towards removing reference to quiz module from the question code
...
Renaming tables:
quiz_questions -> question
quiz_states -> question_states
Renaming functions:
quiz_delete_question -> delete_question
quiz_get_question_options -> get_question_options
quiz_get_states -> get_question_states
quiz_restore_state -> restore_question_state
quiz_save_question_session -> save_question_session
quiz_state_is_graded -> question_state_is_graded
quiz_extract_responses -> question_extract_responses
quiz_regrade_question_in_attempt -> regrade_question_in_attempt
quiz_process_responses -> question_process_responses
quiz_isgradingevent -> question_isgradingevent($event)
quiz_search_for_duplicate_responses -> question_search_for_duplicate_responses
quiz_apply_penalty_and_timelimit -> question_apply_penalty_and_timelimit
quiz_print_question_icon -> print_question_icon
quiz_get_image -> get_question_image
quiz_make_name_prefix -> question_make_name_prefix
quiz_get_id_from_name_prefix -> question_get_id_from_name_prefix
quiz_new_attempt_uniqueid -> question_new_attempt_uniqueid
quiz_get_renderoptions -> question_get_renderoptions
quiz_print_quiz_question -> print_question
quiz_get_question_responses -> get_question_responses
quiz_get_question_actual_response -> get_question_actual_response
quiz_get_question_fraction_grade -> get_question_fraction_grade
quiz_get_default_category -> get_default_question_category
Renaming constants:
QUIZ_EVENT.... -> QUESTION_EVENT....
QUIZ_MAX_NUMBER_ANSWERS -> QUESTION_NUMANS
2006-02-28 09:26:00 +00:00
20b36bed42
mod/quiz/backuplib: tiny syntax fix - thanks Nigel
2006-02-24 01:10:08 +00:00
c6293e00db
Backing up the 'originalquestion' field
2006-02-23 19:16:39 +00:00
c4c7a2a67b
Revert the fix to $status because it turns out that for example backup_putid() returns false when called with an id that has already been added.
2006-02-19 21:46:36 +00:00
e1eed5ccfc
Fix for bug 4217
2006-02-19 17:41:27 +00:00
997bcf0eb8
As Eloy pointed out, my recent addition for including child categories used by random questions did not restrict to the course or the instances currently being backed up.
2006-02-16 18:15:15 +00:00
6a687a0e98
Now contains code to also backup those categories needed by random questions that recurse into child categories.
...
Fixed the way the $status flag is handled.
2006-02-15 22:30:54 +00:00
03d1753c1c
Renamed table quiz_newest_states to question_sessions
2006-02-15 08:38:41 +00:00
fd198b8776
Adding new feature: Time delay between quiz attempts
2006-02-13 01:49:52 +00:00
5a981c9480
shuffleanswers option can now also be set at the question level, see http://moodle.org/mod/forum/discuss.php?d=39371
2006-02-12 09:46:34 +00:00
1ecea97679
Granular backup & restore:
...
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
503114809f
Added backup/restore code for essay question type. In the process of testing, fixed several other bugs
...
in the quiz restore code regarding state restoration.
2005-09-19 22:38:18 +00:00
300dfca610
Merged from MOODLE_15_STABLE: Fixing typo in call to get_record that was causing a lot of noise in the db error log
2005-08-26 04:53:39 +00:00
bb7e09a453
Latest changes merged from MOODLE_15_STABLE
...
Moving the MERGED tag for the whole quiz directory
as talked with Gustav...
2005-07-06 09:05:17 +00:00
d115d8c736
I have introduced the new field $attempt->uniqueid, see http://mantis.york.ac.uk/moodle/mod/forum/discuss.php?d=852#3380
2005-07-02 18:14:51 +00:00
fc44ee0de8
Merged from stable
2005-06-05 20:51:15 +00:00
87dddc1445
Replaced some (not all) tabs to spaces.
...
I've leave unmodified formats and nusoap library
2005-05-16 22:51:16 +00:00
8636eb6560
Changed backup of numerical questions to use the new DB model
2005-05-11 21:54:21 +00:00
9a62a7634b
Made sure the questions that can be parent questions are backed up and restored first so that the recoding of the parent field will work.
2005-05-10 09:49:58 +00:00
2e1111c5b1
Towards a Moodle 1.5 quiz backup and restore. Not tested yet.
...
I moved some quiz speicific functions out of backup/backuplib.php into mod/quiz/backuplib.php
2005-05-10 09:37:09 +00:00
14a02d9595
updated the database diagrams
2005-05-08 15:11:31 +00:00
57ddd6adba
upgraded backuplib.php. Outstanding issues: quiz_rqp_type table and all of Julian's question-type specific stuff.
2005-05-08 14:33:34 +00:00
ee1fb969c8
Merging in from the MOODLE_15_QUIZREFACTOR branch.
...
The quiz module now can handle adaptive questions and can render remote questions via RQP web services.
2005-05-06 06:24:04 +00:00
a9b1b60bee
Avoided some excess of "QUESTION_VERSIONS" ;-)
2005-03-23 23:32:51 +00:00
1909875912
Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777
2005-03-23 20:59:55 +00:00
e4acc4ce48
Now, at backup time (not restore yet):
...
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
are properly exported. Restore code coming soon.
2005-03-20 20:00:43 +00:00
c98cb6bc57
Now quiz_categories' parent and sortoreder is supported in backup.
...
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
5150c3043a
Now questionsperpage is in backup & restore
2005-02-19 01:24:17 +00:00