public function backup_migrate_destination_files::get_filepath in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
- 8.3 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
- 6.3 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
- 6.2 includes/destinations.file.inc \backup_migrate_destination_files::get_filepath()
- 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 128 - A destination type for saving locally to the server.
Class
- backup_migrate_destination_files
- A destination type for saving locally to the server.
Code
public function get_filepath($file_id) {
if ($dir = $this
->get_realpath()) {
$filepath = rtrim($dir, '/') . '/' . $file_id;
return $filepath;
}
return FALSE;
}