Commit graph

12 commits

Author SHA1 Message Date
stronk7
e44f2f92b0 Now length is correctly set and stored to DB (bug 3290)
(http://moodle.org/bugs/bug.php?op=show&bugid=3290)

plus some added bits to handle the hidden field properly
2005-05-18 23:53:36 +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
8465c58a8d STEP 2 seems to be working relatively nice!!
quizzes, instances, versions, attempts, states and grades for pre15
are now restored. Not fully tested, so I'm sure it will need some
adjustments but, basically, it's done.
 CVS: ----------------------------------------------------------------------
2005-05-16 00:05:50 +00:00
stronk7
ce12d03e71 Now STEP1 is 100% completed.
Remap of multianswers isn't necessary because, under Moodle 1.5, it seems
to be always a  1..n collection of pairs and responses pairs are always
ordered from {#1} to {#n}.

If this isn't true we should look for an alternatice method of restore
attempts... :-(

For more info, bug 3252 has more info
(http://moodle.org/bugs/bug.php?op=show&bugid=3252)
2005-05-15 21:40:59 +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
stronk7
359d007b0b Some debug is out and the missing decode of answers->question
has been included.
2005-05-14 16:38:52 +00:00
stronk7
7aaffc3a55 Not finished but multianswer questions are now properly converted
to their new schema. Good milestone to save changes to CVS.
2005-05-14 16:07:37 +00:00
stronk7
a63ae8e9b2 Work in progress!!
I doesn't work at all but near every question type has been checked and
changed if needed. Tomorrow I'll start with the quiz->attempts... part

Anyway I've some IMPORTANT doubts about how this questions are currently
implemented:

- NUMERICAL: Can the answer field have more than one answer?
- MULTIANSWER: What are the differences. Why, in the upgrade process,
     all of them are deleted and recreated? Why some fields have been
     deleted? Why the questiontext for this type is set to '' in the
     upgrade processs
- CALCULATED: Why the quiz_question_datasets table is now simply "s" in
     the restore process? A typo, I hope.

I've written this here to avoid forgetting it and, if someone in the
quiz's team can answer me...

Now, just zzzZZZzzzZZZ. Ciao :-)
2005-05-11 23:13:03 +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
d2ed94bcba Simply rename everyfunction.
Some of them will be deleted later...but from now...
2005-05-09 19:46:08 +00:00
stronk7
0ce57ae1e2 Splitted restorelib.php to work together
in both 1.5 and pre 1.5 restore code.
Gustav's team is goingo to handle 1.5 whereas
I'm going to handle old backups.

I'll try to change every function name to be able
to merge both libs again at the end of the process.
2005-05-09 11:07:37 +00:00