149 Commits

Author SHA1 Message Date
Eloy Lafuente (stronk7)
c44299c172 MDL-27636 restore - add support for after_restore() to plugins. Credit goes to Mark Nielsen. Thanks! 2011-05-26 02:37:16 +02:00
sam marshall
5e0dae125d MDL-27532 Add backup support for course report per-course data 2011-05-18 14:56:11 +01:00
Tim Hunt
7bbe96dc16 MDL-27394 Moodle 2.0 backup and restore may randomise the order of multichoice/numerical/shortanswer answers 2011-05-05 19:17:41 +01:00
Dan Marsden
7fd4730805 Plagiarism MDL-26939 - missing return 2011-03-24 14:46:35 +13:00
Dan Marsden
571ae25286 MDL-21432 backup - add plagiarism plugin hooks for course and module 2011-03-14 11:44:14 +01:00
sam marshall
69ae86ea5f MDL-26606 Theme backup: Minor improvement to make it more consistent with other backup 2011-03-10 12:57:27 +00:00
Eloy Lafuente (stronk7)
4b43b1074f backup MDL-26572 add new param to plugin and subplugin functions 2011-03-07 00:16:25 +01:00
Eloy Lafuente (stronk7)
07a36633f9 Merge branch 'MDL-26572_backup_sum' of git://github.com/andyjdavis/moodle 2011-03-07 00:10:16 +01:00
sam marshall
89213d0041 backup MDL-26606 Backup should allow themes to have course data; also fix course theme restore 2011-03-04 15:53:48 +00:00
Andrew Davis (andyjdavis)
98529b009b backup MDL-26572 made restore store null instead of 0 2011-03-04 12:14:00 +08:00
Eloy Lafuente (stronk7)
e4f72d1428 MDL-26513 restore - observe target site restrictmodulesfor setting 2011-02-21 15:58:20 +01:00
Petr Skoda
3bc644ce70 Merge branch 'MDL-26405_take_two' of git://github.com/stronk7/moodle 2011-02-16 20:24:54 +01:00
Eloy Lafuente (stronk7)
0149e6c713 MDL-26405 restore - dispatch able to skip branches
after this change any restore_structure_step processor
method is able to instruct the dispatcher about to skip
any path below it. Until now, we were doing the checks on
each child processor method, but that was inneficient and
prone to errors (easy to miss the check in a child so some
orphaned piezes of restore may be causing mess here and there).
Once implemented, it's simlpy a matter of the parent deciding if
all its children must be processed or no. Easier for developers
and also small speed improvement because avoids unnecesary
dispatching/processing to happen.

Surely only will be used in parts of core, like in question_categories,
saving 50-60 sub processors (sub-paths) to be dispatched.
2011-02-16 19:13:56 +01:00
Petr Skoda
c9e12de4e3 Merge branch 'MDL-26405_qtype_exception_wip' of git://github.com/stronk7/moodle 2011-02-16 09:59:14 +01:00
Eloy Lafuente (stronk7)
0ff7159edb MDL-26405 restore - incorrectly thrown exception 2011-02-15 23:28:00 +01:00
Petr Skoda
251e5a8b62 Merge branch 'MDL-22146_backup_course_format_wip' of git://github.com/stronk7/moodle 2011-02-14 21:08:19 +01:00
Eloy Lafuente (stronk7)
d84fe4c8a6 MDL-26399 restore - fix oracle/mssql problems 2011-02-14 19:42:57 +01:00
Eloy Lafuente (stronk7)
a90659d6ba DL-22146 backup & restore - course formats remaining hooks 2011-02-11 00:07:32 +01:00
Eloy Lafuente (stronk7)
e5169d5229 MDL-22146 backup & restore - copy/paste fix 2011-02-10 15:36:03 +01:00
Eloy Lafuente (stronk7)
4ab111b9bf MDL-22146 backup & restore - extending the backup plugins API 2011-02-10 12:14:00 +01:00
Eloy Lafuente (stronk7)
1e37c39180 MDL-22146 backup & restore - extending the restore plugins API 2011-02-10 11:34:41 +01:00
Eloy Lafuente (stronk7)
4fda584f28 MDL-22146 backup & restore - course formats first cut 2011-02-10 10:37:36 +01:00
Eloy Lafuente
77151075dc NOBUG: Changed to _sql() variant to properly use sql_compare_text(). Kudos to aparup for latest improvs. in where_clause() 2010-11-24 14:55:29 +00:00
Eloy Lafuente
f81f513325 MDL-25161 restore - keep course->numsections unmodified 2010-11-15 17:10:11 +00:00
Eloy Lafuente
0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Andrew Davis
46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Eloy Lafuente
b31763f8b3 NOBUG: Clean already implemented TODO 2010-11-01 15:55:59 +00:00
Eloy Lafuente
648a575eda NOBUG: Added support for after_restore() methods on restore. Will help some blocks. 2010-11-01 15:53:35 +00:00
Eloy Lafuente
9f68f2d5a6 MDL-24817 backup - added support for decode contents in plugins (and qtypes) 2010-11-01 15:49:01 +00:00
Eloy Lafuente
e3c2e1b2f9 MDL-24921 backup - on restore create missing sections up to max one to avoid some warns 2010-10-28 22:38:03 +00:00
Eloy Lafuente
41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +00:00
Andrew Davis
90c2985765 gradebook MDL-24721 added potentially missing column to backup_gradebook_structure_step 2010-10-19 07:42:22 +00:00
Eloy Lafuente
dc1e4ccebd MDL-23752 backup - export/import mode. Fixed various details. 2010-09-28 09:33:54 +00:00
David Mudrak
9404c7dbe7 NOMDL backup: missing AS for column alias
Throws DML read exception in PostgreSQL. Credit goes to skodak.
2010-09-22 13:37:24 +00:00
Eloy Lafuente
f2a9be5f8a MDL-22148 backup - support for manual/self/guest enrolments. Credit goes to Petr. 2010-09-21 10:42:19 +00:00
Eloy Lafuente
767cb7f03a MDL-22151 & MDL-22138 - Quiz activity backup & questions banks too!
CV S: ----------------------------------------------------------------------
2010-09-21 01:28:30 +00:00
Eloy Lafuente
0f8941e208 MDL-24302 backup - not using unexisting block->multiple anymore. Credit goes to skodak! 2010-09-20 21:06:21 +00:00
Petr Skoda
7c109ea3f0 MDL-24276 "static abstract" combination is deprecated since PHP 5.2, replacing with our coding_style exception 2010-09-19 18:43:52 +00:00
Petr Skoda
034ef76129 improved spelling 2010-09-18 12:31:20 +00:00
Sam Hemelryk
aa54831894 backup MDL-22254 Implemented course completion skip criteria for module criteria that cannot be restored. Cheers Eloy for spotting. 2010-09-17 07:58:36 +00:00
Sam Hemelryk
bd39b6f226 backup MDL-22254 Added backup and restore of course completion information 2010-09-17 03:04:55 +00:00
Andrew Davis
0df2981f32 backup MDL-23362 commented out annotation of old/new ids for grade_grades and grade_settings as I dont think theyre required 2010-09-16 09:39:22 +00:00
Andrew Davis
b8040c830e backup MDL-23362 added grade_settings to backup and restore 2010-09-16 09:08:38 +00:00
Andrew Davis
e101180d18 backup MDL-23362 removed grade_letter context id from the backup 2010-09-16 08:08:40 +00:00
Eloy Lafuente
d90e49f238 MDL-22179 backup - ensure we have the old/new courseid mapping available always 2010-09-15 13:43:06 +00:00
Eloy Lafuente
cfea745e41 NOBUG: Restore section names and descriptions when restoring deleting. Somehow related wit Q3 @ MDL-24219 2010-09-15 10:58:13 +00:00
Andrew Davis
9a20df967d backup MDL-23362 updated gradebook backup and restore based on Eloy's feedback 2010-09-15 09:35:28 +00:00
Eloy Lafuente
58328ce8a6 MDL-23362 backup - on restore detect missing modules / skipped activities, for gradebook. 2010-09-14 22:59:43 +00:00
Sam Hemelryk
7f32340be1 backup MDL-24067 Fixed up bug causing restore to reset course category to the first category. 2010-09-13 03:12:44 +00:00
Eloy Lafuente
58f8ca39b2 MDL-24107 backup - add missing course->legacyfiles col. Thanks Tim Lock 2010-09-07 08:21:48 +00:00