function backup_migrate_destination::save_file in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/destinations.inc \backup_migrate_destination::save_file()
- 6.3 includes/destinations.inc \backup_migrate_destination::save_file()
- 6.2 includes/destinations.inc \backup_migrate_destination::save_file()
- 7.3 includes/destinations.inc \backup_migrate_destination::save_file()
- 7.2 includes/destinations.inc \backup_migrate_destination::save_file()
Save the given file to the destination.
3 methods override backup_migrate_destination::save_file()
- backup_migrate_destination_browser_download::save_file in includes/
destinations.browser.inc - File save destination callback.
- backup_migrate_destination_db::save_file in includes/
destinations.db.inc - Save the info by importing it into the database.
- backup_migrate_destination_email::save_file in includes/
destinations.email.inc - Save to (ie. email the file) to the email destination.
File
- includes/
destinations.inc, line 591
Class
- backup_migrate_destination
- A base class for creating destinations.
Code
function save_file($file, $settings) {
// This must be overriden.
$this
->file_cache_clear();
// Save the file metadata if the destination supports it.
$this
->save_file_info($file, $settings);
return $this
->_save_file($file, $settings);
}