MDL-46455 restore: Extend support for subplugins to any plugin.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Mon, 16 Mar 2015 02:08:44 +0000 (03:08 +0100)
committerMark Nelson <markn@moodle.com>
Fri, 9 Oct 2015 23:23:09 +0000 (16:23 -0700)
commit6a45e6b169b63c0f11545a4268e294bb27c1d47a
treeb242dc24bc849df816431e2556aec573ea3b21b6
parentba66edd0740c1dc5daafd029f70e7e39086d1646
MDL-46455 restore: Extend support for subplugins to any plugin.

In order to implement the backup and restore of log stores, that
are created as subplugins of the tool_log plugin , we need to
extend subplugins support from activities to virtually any plugin.

Basically that implies moving the add_subplugin_structure() method from
its current, restricted, activity level to general restore_structure_step.

This commit implements the change in restore, covered with tests verifying
old, bc behavior and also new, general one.
backup/moodle2/restore_stepslib.php
backup/util/plan/restore_structure_step.class.php
backup/util/plan/tests/fixtures/plan_fixtures.php
backup/util/plan/tests/step_test.php