tjhunt
6b22437658
MDL-16058 - Remove obsolete quiz_question_versions table.
2008-08-15 08:23:09 +00:00
skodak
cd655b33f9
MDL-15095 towards restore lib dml conversion
2008-06-03 23:35:50 +00:00
skodak
9db7dab2ca
MDL-15095 towards restore lib dml conversion
2008-06-03 22:36:54 +00:00
tjhunt
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
tjhunt
1061756d8e
Minor whitespace fixup.
2007-11-07 15:41:20 +00:00
tjhunt
f4b7d5a3f9
Restore notices.
2006-12-11 17:12:04 +00:00
thompson697
cf0b1faded
Apply modularity to the creation of the log file during restore to a new course.
...
Remove the responsibility for loging the application of the course start date offset, from activity modules to the backup module.
Merged from stable branch
2006-10-17 10:05:41 +00:00
toyomoyo
18d751fc38
merged fixed warning druing restore
2006-10-12 06:13:42 +00:00
thompson697
eb87ac71c5
Change creation of restorelog file location to protected backupdata folder.
...
Reassign style and language links
2006-10-04 14:50:50 +00:00
moodler
fdb1cf2cc1
FIxed to use the new debugging function
2006-09-18 09:13:04 +00:00
thompson697
163ff97e84
Complete work on Roll Forwards - Restore from previous semester (MDL-5532)
...
* Add fields to restore form to enable changes to Short Name, Full Name and Start Date
* Start Date offset added to Restore process
* Created Restorelog file in Course files area
* Activity Modules use offset to change dates
* Activity Modules write changes to Restorelog
2006-09-13 13:19:39 +00:00
tjhunt
199e43d470
Fix Eclipse warnings.
2006-08-22 19:00:18 +00:00
tjhunt
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
tjhunt
4919564de9
Fix notices from the quiz module on backup and restore. Merged from MOODLE_16_STABLE.
2006-06-06 14:15:48 +00:00
stronk7
bdeed966f6
Now more quiz actions are restored properly:
...
-preview
-start attempt
-close attempt
-continue attempt (too long. See Bug 5419)
Bug 5122
(http://moodle.org/bugs/bug.php?op=show&bugid=5122 )
2006-05-03 23:48:28 +00:00
stronk7
1b1858d260
htmlentities() to s()
2006-04-11 16:09:52 +00:00
stronk7
2070370cfa
Typo.
2006-03-28 23:31:12 +00:00
gustav_delius
fe1106f0d1
Now the question backup code has been separated from the quiz backup code.
2006-03-21 16:50:42 +00:00
gustav_delius
c6abbe5e39
Some incomplete work on the restore code (committing only because I am moving to a different machine)
2006-03-16 21:17:31 +00:00
gustav_delius
12fcd27da6
Some work on question restore code, not complete
2006-03-13 00:18:38 +00:00
gustav_delius
32a189d636
More renamings to separate questions from quiz. Some other small fixes.
2006-03-12 21:17:42 +00:00
gustav_delius
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
gustav_delius
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
gustav_delius
80a5e194ff
Updated quiz scripts to work with the separate question scripts in moodle/question
2006-02-24 10:43:06 +00:00
gustav_delius
3eb9904f61
Restoring the 'originalquestion' field
2006-02-23 19:14:51 +00:00
gustav_delius
03d1753c1c
Renamed table quiz_newest_states to question_sessions
2006-02-15 08:38:41 +00:00
moodler
fd198b8776
Adding new feature: Time delay between quiz attempts
2006-02-13 01:49:52 +00:00
gustav_delius
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
mjollnir_
f90666aa5c
Abstracted a bit of the restore procedure to allow for silent restoring.
...
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00
mjollnir_
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
stronk7
140b7eb5db
Log actions must be strored to DB without &
...
print_log() takes care of it! Bug 3853.
(http://moodle.org/bugs/bug.php?op=show&bugid=3853 )
Merged from MOODLE_15_STABLE
2005-11-23 09:46:25 +00:00
michaelpenne
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
moodler
f5e1319ec3
Merged SC139 from stable
2005-07-12 08:00:51 +00:00
stronk7
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
gustav_delius
a08e9552fa
More steps towards the separation of questions from the quiz module.
2005-07-03 09:53:02 +00:00
gustav_delius
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
gustav_delius
fc44ee0de8
Merged from stable
2005-06-05 20:51:15 +00:00
stronk7
000b822e54
Now restore code for quizzes is enabled again. pre15 restore
...
seems to work and 1.5 backup 1.5 is in being done by Gustav's team.
2005-05-22 19:25:48 +00:00
stronk7
87dddc1445
Replaced some (not all) tabs to spaces.
...
I've leave unmodified formats and nusoap library
2005-05-16 22:51:16 +00:00
stronk7
4544d0727f
Latest change of function name solved !
2005-05-14 23:44:37 +00:00
stronk7
86f00bcf98
Now the restore of quiz_categories use the new
...
restore_get_best_category() function.
2005-05-14 23:43:04 +00:00
gustav_delius
93210cdfdb
fixed my careless search and replace that got rid of all question_datasets
2005-05-12 16:51:41 +00:00
stronk7
4cae7b0b85
Avoid recode of category->parent from quiz/restorelib.php because it's
...
done globally after restoring all the categories by restore_create_questions()
in backup/restorelib.php
Modify the restore of numericalquestions to work with its new 1.5 structure.
2005-05-11 21:45:04 +00:00
stronk7
cb3270aeb5
We must have editing rights in existing course, owner of the
...
published cat, not it the one being restored. ;-)
2005-05-11 16:47:50 +00:00
stronk7
9e72253b32
Hooks to call pre15 restore included.
...
(not working yet)
Hard work starts now! ;-)
2005-05-10 19:48:17 +00:00
gustav_delius
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
gustav_delius
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
stronk7
adc7ade8c6
Disable temporary the restore of quiz questions and attempts
...
to avoid moodlers filling their DBs (not always test servers!)
with non-consistent data.
Can be enabled by setting $CFG->enablerestorequiz = true;
(while working on it both Gustav's team and I, obviously this will be
removed once stabilished)
2005-05-09 13:33:18 +00:00
gustav_delius
90c7675076
reverted back to restorelib from before the merge. Removes the duplicate function definitions reported on the forums. Also I think this is the best version to start with.
2005-05-09 05:34:20 +00:00
gustav_delius
14a02d9595
updated the database diagrams
2005-05-08 15:11:31 +00:00