MDL-28488 backup - conditionaly apply defaults based on mode
commit366c19fabdd58bbc96fc657d1cd7b8267c3fbcf1
authorEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 11 Sep 2011 17:35:56 +0000 (11 19:35 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Sun, 11 Sep 2011 19:57:00 +0000 (11 21:57 +0200)
tree9e27af0d3fa34fb7525b470be62938a57a39393a
parent56a1642c5bff53a35adbdb86acfa90099286e1ce
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