MDL-46455 backup: Extend support for subplugins to any plugin.
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 8 Mar 2015 18:38:44 +0000 (19:38 +0100)
committerMark Nelson <markn@moodle.com>
Fri, 9 Oct 2015 23:23:09 +0000 (16:23 -0700)
commitba66edd0740c1dc5daafd029f70e7e39086d1646
treeba13480cd81ed8591cca4be4233628481f9b3fa3
parent74fad2ce3de05ce158bf6588c20bb277154d8d9d
MDL-46455 backup: 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 backup_structure_step.

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