Commit graph

47 commits

Author SHA1 Message Date
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
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
Eloy Lafuente (stronk7)
4ab111b9bf MDL-22146 backup & restore - extending the backup plugins API 2011-02-10 12:14:00 +01:00
Eloy Lafuente
636444e8b6 MDL-25019 backup - course_startdate may not exist 2010-11-24 10:46:15 +00:00
Eloy Lafuente
8231bb159b MDL-24962 backup - clean plan/settings circular refs on restore 2010-11-15 16:08:02 +00:00
Eloy Lafuente
4f6ed68c1c MDL-24962 backup - circular refs destroyer for backup plan 2010-11-15 07:15:48 +00:00
Eloy Lafuente
d0ad98607d MDL-24962 backup - now destroying circular refs manually to help PHP 5.2 2010-11-01 22:09:44 +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
41941110fd MDL-22138 backup - I know smaller cathedrals than this, yay quizzes! 2010-10-24 10:43:42 +00:00
Eloy Lafuente
dc1e4ccebd MDL-23752 backup - export/import mode. Fixed various details. 2010-09-28 09:33:54 +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
Sam Hemelryk
bd39b6f226 backup MDL-22254 Added backup and restore of course completion information 2010-09-17 03:04:55 +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
d90e49f238 MDL-22179 backup - ensure we have the old/new courseid mapping available always 2010-09-15 13:43:06 +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
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
0330784635 MDL-21432 backup - add links decoder processor to restore plan/tasks 2010-07-27 23:12:53 +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
b1eaf633eb MDL-21432 backup - solve problem deleting restore temp dirs, thanks SamH! 2010-07-22 10:33:27 +00:00
Eloy Lafuente
396ee01f53 MDL-21432 backup - access to userid is done across task 2010-07-22 08:22:29 +00:00
Eloy Lafuente
ba8bead5b6 MDL-21432 backup - fix some get_userid() calls 2010-07-22 08:19:21 +00:00
Sam Hemelryk
785d6603dd backup MDL-23109 Implemented base restore UI within Moodle and linked through the navigation. 2010-07-22 07:48:02 +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
David Mudrak
2d3522ae1e NOMDL Fixed incorrect throwing of exceptions - missing 'new' or unknown exception class 2010-07-18 12:30:49 +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
3b6a420945 MDL-21432 backup - allow conditional (dynamic) execution of structure steps 2010-07-13 09:34:24 +00:00
Eloy Lafuente
690234554f MDL-21432 backup - restore_structure_step implementation 2010-07-12 22:44:46 +00:00
Eloy Lafuente
a4e13312bf MDL-21432 backup - get target on restore 2010-07-12 22:35:28 +00:00
Eloy Lafuente
c0bd624928 MDL-21432 backup - Small change in API after discussion in MDL-22245 2010-07-07 22:56:14 +00:00
Eloy Lafuente
c9d8234a9c MDL-21432 backup - restore plan builder (still missing blocks support) 2010-07-06 22:30:49 +00:00
Eloy Lafuente
b5d45a0430 MDL-21432 backup - plan/task/step basis 2010-07-05 22:23:00 +00:00
Eloy Lafuente
a42dcde415 MDL-21432 move some stuff from base to backup plan classes 2010-06-22 10:31:37 +00:00
Eloy Lafuente
ce937f9957 MDL-22145 backup storage - provide 'user_tohub' storage for HUB files 2010-04-27 01:02:38 +00:00
Eloy Lafuente
1c9e93c77a MDL-21432 backup settings - added root "activities" setting and section settings 2010-04-25 15:51:42 +00:00
Eloy Lafuente
69dd0c8cbf MDL-21432 backup 2.0 - initial commit. util dir 2010-04-21 09:17:06 +00:00