You are here

function backup_migrate_destination::save_file in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::save_file()
  2. 6.3 includes/destinations.inc \backup_migrate_destination::save_file()
  3. 6.2 includes/destinations.inc \backup_migrate_destination::save_file()
  4. 7.3 includes/destinations.inc \backup_migrate_destination::save_file()
  5. 7.2 includes/destinations.inc \backup_migrate_destination::save_file()

Save the given file to the destination.

4 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.
backup_migrate_destination_nodesquirrel::save_file in includes/destinations.nodesquirrel.inc
Save to the NodeSquirrel destination.

File

includes/destinations.inc, line 793

Class

backup_migrate_destination
A base class for creating destinations.

Code

function save_file($file, $settings) {
  $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);
}