function backup_migrate_destination_db::save_file

cis7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)
cle7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)
elmsmedia7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)
icor7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)
meedjum_blog7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)
mooc7 destinations.db.inc backup_migrate_destination_db::save_file($file, $settings)

Save the info by importing it into the database.

Overrides backup_migrate_destination::save_file

File

sites/all/modules/ulmus/backup_migrate/includes/destinations.db.inc, line 27
Functions to handle the direct to database destination.

Class

backup_migrate_destination_db
A destination type for saving to a database server.

Code

function save_file($file, $settings) {
  backup_migrate_include('files');

  // Set the source_id to the destination_id in the settings since for a restore, the source_id is the 
  // database that gets restored to.
  $settings->set_source($this->get_id());

  // Restore the file to the source database.
  $file = backup_migrate_perform_restore($this->get_id(), $file, $settings);

  return $file;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.