MDL-28488 backup - conditionaly apply defaults based on mode
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 11 Sep 2011 17:35:56 +0000 (19:35 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 11 Sep 2011 17:35:56 +0000 (19:35 +0200)
commit59fc0cbdb71e96771fa2e6ccaa152330d8eb8e26
treee7f5b41b8642515692a1ea1d5f36ea0a185aac66
parent2a4ba40f3179aebe1f8fb38895b863c5c9ab4a2e
MDL-28488 backup - conditionaly apply defaults based on mode

Some modes of backup cannot be preloaded with general backup
settings because they may conflict with the definitions required/set
by the mode (for example, import backups are, by definition, without
users always, so we cannot apply one default in the opposite direction).

So, after the patch, current general_backup setting will be only applied
to general backups, import/hub modes won't be using any default and
automated backup defaults should be loaded here (TODO)
backup/controller/backup_controller.class.php
backup/util/dbops/backup_controller_dbops.class.php