Commit graph

98 commits

Author SHA1 Message Date
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
gustav_delius
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
stronk7
e05a9cc17c Fixed typo and don't use constants here to avoid more files to be included. 2005-04-14 19:39:42 +00:00
gustav_delius
983a7390df Random questions should be hidden 2005-04-13 16:02:20 +00:00
stronk7
85b9471fb4 Now all the wiki formated texts are converted to markdown
by the restore process. Such conversion is performed for
every backup file prior to 2005041100.
Wiki internal links are dinamically changed and then,
converted to Markdown. Bye, Wiki! ;-)
2005-04-12 23:42:56 +00:00
stronk7
b681000402 Now quiz->name supports filterall. 2005-04-03 00:19:11 +00:00
stronk7
a9b1b60bee Avoided some excess of "QUESTION_VERSIONS" ;-) 2005-03-23 23:32:51 +00:00
gustav_delius
1909875912 Renamed quiz_question_version to quiz_question_versions as suggested by Eloy in bug 2777 2005-03-23 20:59:55 +00:00
stronk7
4f13e03055 Now working in restore:
- quiz_questions->hidden
- quiz_responses->originalquestion
- quiz_question_version table
- editquestions log action (although Bug 2778) needs to be solved!

Please, test, test....
2005-03-20 23:39:15 +00:00
moodler
4b745a820f Last string fix for bug 2591 2005-03-03 05:13:58 +00:00
stronk7
94e765288a Now parent and sortorder is supported at restore too. 2005-02-20 18:02:41 +00:00
stronk7
5150c3043a Now questionsperpage is in backup & restore 2005-02-19 01:24:17 +00:00
stronk7
f4e56673df Added backup and restore support for decimalpoints 2005-02-14 19:05:00 +00:00
stronk7
0183a6c48e One minor problem restoring categories in XHTML solved 2005-02-07 23:45:19 +00:00
stronk7
e09087bc76 Some minor changes to each module to XHTMLise the restore process 2005-02-07 23:33:17 +00:00
moodler
f5a1c0c064 New field popup to control new feature: launch quiz in fullscreen popup window 2004-12-14 06:43:22 +00:00
kaipe
2ad1b388f7 Updating database and backup/restore in order to make it possible
for teachers to choose number of decimals for calculated questions.
Can someone please check if the database update for postgres7 turns out alright?
2004-12-05 12:56:01 +00:00
moodler
6a6002f68c Merged changes from stable 2004-11-11 07:42:04 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
gustav_delius
d1290cec39 fixed capitalization and quoting of attribute values 2004-09-12 17:34:35 +00:00
gustav_delius
a9ef4a630a closed <input /> <br /> <hr /> 2004-09-12 14:41:49 +00:00
stronk7
9fd687e0d2 Now CALCULATED questions are in backup & restore.
It was difficult to understand but easy to implement :-)
Some mechanisms has been added to avoid to duplicate
quiz_dataset_definitions (confirmed from Henrik).

Please, test, test, test, test....
2004-08-06 23:43:19 +00:00
stronk7
04bc8ed1c1 Now numerical_units support has been added to backup and restore.
Currently only working with numerical questions...
2004-08-05 23:11:31 +00:00
stronk7
1b76b56cbc Added support to timelimit, password and subnet in backup & restore. 2004-07-19 20:04:33 +00:00
moodler
a99008f6e1 Restore logs consistently 2004-02-18 02:28:47 +00:00
stronk7
10672458f9 Now "attempt", "submit" and "review" actions
use the q=xxx&attempt=yyyy syntax instead of
        id=xxxx&attempt=yyyy (not working old one)
It's necessary to change the "review" add_to_log() call
to use this sintax. It uses the old (nor working) one.
I wait to Martin to do this, because I've sent one email about this.
For info, the line to correct is number 57 in review.php from:
add_to_log($course->id, "quiz", "review", "review.php?id=$cm->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
to:
add_to_log($course->id, "quiz", "review", "review.php?q=$quiz->id&attempt=$attempt->id", "$quiz->id", "$cm->id");
Ciao :-)
2004-02-17 17:27:27 +00:00
stronk7
4130af7552 Now label, quiz, resource and survey logs
are restored properly (I think) :-)
2004-02-16 20:42:16 +00:00
stronk7
07bbc2d1c7 Now the questiontextformat is supported in backup/restore too. 2004-02-13 23:47:08 +00:00
stronk7
ce3ec518ea Take out two debugs !! 2003-08-28 00:50:51 +00:00
stronk7
202ba3902e Now STAMP fiel is supported in backup & restore.
If it exists in backup-file used, else, old search-by-name is used.
When inserting new categories, stamp is filled it it doesn't exist.
Updated version to 1.1 Beta +++ !!
2003-08-27 17:09:01 +00:00
stronk7
461da6bdb6 Now existing categories are used only if their publish
field is set to yes. Else, a new "local" category is created.
Added some lines of code to mantain old compatibility when detecting
existing questions (do it by name if the stamp is not found) and insert
the stamp too !!
Please, test.
2003-08-27 00:40:14 +00:00
moodler
eb94392c4b Sometimes there are no answers, so check existence first 2003-08-25 02:52:19 +00:00
moodler
5884d4e2fd Fixed some array indices 2003-08-25 02:48:09 +00:00
stronk7
1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
stronk7
f53119698e Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:35:21 +00:00
stronk7
bbe15ef239 Changed the "graphical" representation of the mod to include
multianswer table. I start working with it now !!
2003-08-22 15:46:28 +00:00
stronk7
f19f822b1a Solved one bug when restoring MATCH(5) questions if
the question is an existing one. Some mapping are done
to use after them in responses.
2003-08-15 19:11:55 +00:00
stronk7
887e908592 Solved one bug when restoring RANDOMSAMATCH(6) questions if
they haven't been responsed in the quiz. The answer field in
quiz_responses must have X-0,Y-0 format instead of null.
Curiosly, MATCH(5) questions must have null if they aren'r
responsed.
2003-08-15 18:10:11 +00:00
stronk7
f43f3f65bc Solved one important bug in RANDOM(4) and RANDOMSAMATCH(6)
question types.
And modified some of the quiz_answers restore system to
allow remapping answers with existing questions.
//Detected by scott dot elliott at mchsi dot com in Bug 84
2003-08-15 11:08:51 +00:00
stronk7
22ad18b972 ATTEMPTONLAST are included in backup/restore too !! 2003-08-04 10:38:51 +00:00
stronk7
e5fc599647 Forget delete some debug, sorry. :-) 2003-08-03 16:41:31 +00:00
stronk7
13d0fb4bbf Now, when a category exists, if we are restoring to a different course,
set utomatically the publish field to 1.
If a question exists in DB (by category, questiontext and qtype) it isn't
duplicated.
This produce some problems restoring answes, but avoid duplicates.
2003-08-03 16:36:29 +00:00
stronk7
902142c079 Added language support 2003-07-28 19:32:51 +00:00
stronk7
a8c0abbfb1 Added language suport 2003-07-28 19:24:09 +00:00
stronk7
e2bad68d23 Now numerical questions are included in backup and restore too !! 2003-07-19 18:01:11 +00:00
moodler
d7c93ec8fa Moving the backup libraries for each module into their new homes.
There's some beer and pies in the fridge, guys, settle in.
2003-07-09 04:40:35 +00:00