You are here

function backup_migrate_destination_files::get_file in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 includes/destinations.file.inc \backup_migrate_destination_files::get_file()
  2. 6.2 includes/destinations.file.inc \backup_migrate_destination_files::get_file()
  3. 7.3 includes/destinations.file.inc \backup_migrate_destination_files::get_file()

Get the file object for the given file.

File

includes/destinations.file.inc, line 80
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 get_file($file_id) {
  $files = $this
    ->list_files();
  if (isset($files[$file_id])) {
    isset($files[$file_id]);
  }
  return NULL;
}