138 Commits

Author SHA1 Message Date
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
Eloy Lafuente
12c80f79b4 MDL-23993 backup - enforce in UI and save all backup files with .mbz 2010-09-06 09:33:20 +00:00
Eloy Lafuente
b212f87e32 MDL-21432 backup - proper fallback of user if missing orig one 2010-09-05 15:42:11 +00:00
Andrew Davis
44a25cd200 gradebook MDL-23362 added a fix to deal with the course grade item already existing or not 2010-09-03 08:53:32 +00:00
Andrew Davis
499dbce85d gradebook MDL-23362 added a fix to deal with the course grade item already existing or not 2010-09-03 08:36:58 +00:00
Andrew Davis
4d787d8a6d gradebook MDL-23362 added a fix so that grade item sortorder isnt lost when you restore 2010-09-03 07:53:10 +00:00
Andrew Davis
0f94550c3c backup MDL-23362 another commit of gradebook restore 2010-09-01 04:46:23 +00:00
Eloy Lafuente
dc362c44e3 MDL-23362 backup - save grade_item orig category properly, my fault, sorry Andrew 2010-08-31 09:17:11 +00:00
Andrew Davis
074a765f37 backup MDL-23362 another intermediate commit for gradebook backup 2010-08-31 04:14:01 +00:00
Andrew Davis
c4d2c74594 backup MDL-23362 another intermediate commit for gradebook backup 2010-08-31 03:51:10 +00:00
Andrew Davis
a0d2710218 backup MDL-23362 committing restore_gradebook_step including a test for whether the gradebook was included in the backup 2010-08-30 06:12:41 +00:00
Eloy Lafuente
5095f3258f MDL-23479 backup - activity completion and availability implemented 2010-08-30 00:24:51 +00:00