Commit Graph

62 Commits

Author SHA1 Message Date
Frederic Massart 3bae0b5916 MDL-28346 Backup: Backup does not fail when a file is missing 2012-09-03 14:11:37 +08:00
Frederic Massart 16ee63b4b8 MDL-28346 Backup: Restore does not fail when a file is missing 2012-09-03 14:11:37 +08:00
David Mudrák ff8734f21d MDL-33430 Give tasks an access to their current plan's results
This in turn provides access to the plan's results for both structure and
execution steps so they can register something useful there.
2012-06-21 12:28:09 +02:00
Eloy Lafuente (stronk7) 936402278b MDL-33756 backup: converters only available in general course backups. 2012-06-15 02:27:18 +02:00
Rajesh Taneja e7b24943e6 MDL-27120 backup: fixed docblock and code cleanup 2012-05-29 16:22:45 +08:00
Ashley Holman f213bbd77a MDL-27120 backup: replace sequential scan search with hash-based lookup. 2012-05-29 14:44:06 +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
Petr Skoda bb7898c6ab MDL-32569 convert remaining backup tests and drop old simpletests 2012-04-21 16:24:33 +02:00
Petr Skoda 4b02743182 MDL-32149 improve testcase naming and list in config file 2012-04-03 22:30:57 +02:00
Petr Skoda 1cbf2a20ca MDL-32149 setUp() and tearDown() are supposed to be 'protected', add missing blog testcase 2012-04-03 22:30:56 +02:00
Petr Skoda 4ac88d6d10 MDL-32149 remaining phpunit tests for backup/restore 2012-04-03 22:30:55 +02:00
Petr Skoda dbf5a44798 MDL-32149 add backup tests and dropping of extra tables 2012-04-03 22:30:54 +02:00
Eloy Lafuente (stronk7) 184acafab6 MDL-28180 backup - set excluded activities for any non-course operation 2011-12-12 00:30:58 +01:00
Tom Lanyon 7aa06e6ded MDL-28701 Change all uses of $CFG->dataroot/temp to $CFG->tempdir 2011-09-10 10:35:39 +02: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
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