You are here

function backup_file::filename in Backup and Migrate 6.3

Same name and namespace in other branches
  1. 8.2 includes/files.inc \backup_file::filename()
  2. 8.3 includes/files.inc \backup_file::filename()
  3. 6.2 includes/files.inc \backup_file::filename()
  4. 7.3 includes/files.inc \backup_file::filename()
  5. 7.2 includes/files.inc \backup_file::filename()

Get the final filename.

3 calls to backup_file::filename()
backup_file::file_id in includes/files.inc
Get the file_id if the file has been saved to a destination.
backup_file::set_file_info in includes/files.inc
Set the file info.
backup_file::transfer in includes/files.inc
Transfer file using http to client. Similar to the built in file_transfer, but it calls module_invoke_all('exit') so that temp files can be deleted.

File

includes/files.inc, line 244
General file handling code for Backup and Migrate.

Class

backup_file
A backup file which allows for saving to and reading from the server.

Code

function filename($name = NULL) {
  if ($name) {
    $this->name = $name;
  }
  $extension_str = '.' . $this
    ->extension();
  $this->name = _backup_migrate_filename_append_prepare($this->name, $extension_str);
  return $this->name . $extension_str;
}