18 Commits

Author SHA1 Message Date
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