Commit Graph

24 Commits

Author SHA1 Message Date
Frederic Massart 16ee63b4b8 MDL-28346 Backup: Restore does not fail when a file is missing 2012-09-03 14:11:37 +08:00
sam marshall 1cf121e1d2 MDL-24419 (1): Core restore steps should have after_restore function
At present core restore steps cannot have an after_restore function,
even though plugin restore steps can. Technically it would be possible
to just override the launch_after_restore_methods function but this
is not very neat. Instead, I added code to call after_restore function
(exactly the same way after_execute works).
2012-05-14 11:15:14 +01:00
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
Eloy Lafuente (stronk7) 4b43b1074f backup MDL-26572 add new param to plugin and subplugin functions 2011-03-07 00:16:25 +01: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) 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
Eloy Lafuente 636444e8b6 MDL-25019 backup - course_startdate may not exist 2010-11-24 10:46:15 +00:00
Eloy Lafuente 41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +00:00
Eloy Lafuente fc92674d7a MDL-21432 backup - keep any empty() value to offset unmodified 2010-09-16 10:07:32 +00:00
Eloy Lafuente 2a918d8f55 MDL-23362 backup - allow set_mapping() to specify one parentitemid to be saved 2010-08-31 09:15:38 +00:00
Eloy Lafuente f2745cbe67 MDL-21432 backup - allow restore of only one itemid (instead of the whole itemname) 2010-08-06 16:08:29 +00:00
Eloy Lafuente 91d1105756 MDL-22245 backup - added support for subplugins in activities 2010-08-06 02:20:21 +00:00
Eloy Lafuente 84cdf7de51 MDL-21432 backup - improve restore of files (user and sortorder) 2010-07-28 15:52:09 +00:00
Eloy Lafuente fc46764db6 MDL-21432 backup - improve start date offset 2010-07-27 23:11:54 +00:00
Eloy Lafuente 245491b062 MDL-21432 backup - improve a bit detection of errors on restore structured steps 2010-07-24 16:31:16 +00:00
Eloy Lafuente 2d7cd79839 MDL-23478 backup - change in block positions structure. Break BC, so up minversion 2010-07-24 00:15:59 +00:00
Eloy Lafuente 71aa9472eb MDL-21432 backup - enable startdate offset now that UI and setting is available 2010-07-22 10:36:11 +00:00
Eloy Lafuente ba8bead5b6 MDL-21432 backup - fix some get_userid() calls 2010-07-22 08:19:21 +00:00
Eloy Lafuente 4bca307a40 MDL-21432 backup - helper function for restoring course/role names and date_offset 2010-07-21 15:50:06 +00:00
Eloy Lafuente c0440b3f0e MDL-21432 backup - allow arbitrary contexts restoring files. original sysctxid + scales 2010-07-18 18:11:20 +00:00
Eloy Lafuente b8bb45b001 MDL-21432 backup - move all the files handling on restore to use new backup_files_temp table 2010-07-18 11:13:03 +00:00
Eloy Lafuente 2df0f295b4 MDL-21432 backup - file handling and other changes. Saving before changes tomorrow due to MySQL temp tables limits 2010-07-18 01:35:18 +00:00
Eloy Lafuente 482aac657a MDL-21432 backup - root task, inforef and users handling completed, various fixes 2010-07-14 23:59:19 +00:00
Eloy Lafuente 690234554f MDL-21432 backup - restore_structure_step implementation 2010-07-12 22:44:46 +00:00