1 backup.file.inc public BackupFile::__construct($backup_name, $directory)

Construct a file object used to save or load a backup from disk.

Parameters

string $backup_name: The name of the backup file without the extension. The extension will be determined by the backup execution (depending on compression).

string $directory: The URI or local path to the directory that will hold the backup. Stream wrappers may be used but they may not be reliable in restoration operations, if the database is not in a working state. Do not include a trailing slash.

File

core/includes/backup/backup.file.inc, line 28
Contains the BackupFile class.

Class

BackupFile
Provides a utility object for reading and writing local backup files.

Code

public function __construct($backup_name, $directory) {
  $this->directory = $directory;
  $this->backupName = $backup_name;
}