function backup_migrate_destination_files::load_file in Backup and Migrate 6.3
Same name and namespace in other branches
- 8.2 includes/destinations.file.inc \backup_migrate_destination_files::load_file()
- 8.3 includes/destinations.file.inc \backup_migrate_destination_files::load_file()
- 6.2 includes/destinations.file.inc \backup_migrate_destination_files::load_file()
- 7.3 includes/destinations.file.inc \backup_migrate_destination_files::load_file()
- 7.2 includes/destinations.file.inc \backup_migrate_destination_files::load_file()
File load destination callback.
Overrides backup_migrate_destination::load_file
File
- includes/
destinations.file.inc, line 69 - A destination type for saving locally to the server.
Class
- backup_migrate_destination_files
- A destination type for saving locally to the server.
Code
function load_file($file_id) {
$filepath = $this
->get_filepath($file_id);
if (file_exists($filepath)) {
backup_migrate_include('files');
return new backup_file(array(
'filepath' => $filepath,
));
}
}