You are here

public function backup_file::file_id in Backup and Migrate 7.3

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

Get the file_id if the file has been saved to a destination.

File

includes/files.inc, line 229
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

public function file_id() {

  // The default file_id is the filename. Destinations can override the file_id if needed.
  return isset($this->file_info['file_id']) ? $this->file_info['file_id'] : $this
    ->filename();
}