Merge branch 'MDL-37761-m' of git://github.com/andrewnicols/moodle

This commit is contained in:
Dan Poltawski
2013-06-18 16:47:18 +08:00
9 changed files with 185 additions and 46 deletions
@@ -395,6 +395,19 @@ abstract class backup_controller_dbops extends backup_dbops {
return (int)(bool)$count;
}
/**
* Given the backupid, determine whether this backup should include
* files from the moodle file storage system.
*
* @param string $backupid The ID of the backup.
* @return int Indicates whether files should be included in backups.
*/
public static function backup_includes_files($backupid) {
// Load controller
$bc = self::load_controller($backupid);
return $bc->get_include_files();
}
/**
* Given the backupid, detect if the backup contains references to external contents
*