18 Commits

Author SHA1 Message Date
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 &amp;
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
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
stronk7
e5acc2e61b Being a bit more exact, I've replaced the 1, 2, .... n
ordered asumption when restoring multianswer responses and
now it checks for the real positionky (like the upgrade)
2005-05-20 22:56:20 +00:00
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