You are here

function backup_migrate_destination_files::get_filepath in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
  2. 8.3 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
  3. 6.2 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
  4. 7.3 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
  5. 7.2 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()

Get the filepath from the given file id.

3 calls to backup_migrate_destination_files::get_filepath()
backup_migrate_destination_files::can_read_file in includes/destinations.file.inc
Determine if we can read the given file.
backup_migrate_destination_files::load_file in includes/destinations.file.inc
File load destination callback.
backup_migrate_destination_files::_delete_file in includes/destinations.file.inc
File delete destination callback.

File

includes/destinations.file.inc, line 118
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_filepath($file_id) {
  if ($dir = $this
    ->get_realpath()) {
    $filepath = rtrim($dir, '/') . '/' . $file_id;
    return $filepath;
  }
  return FALSE;
}