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

Hierarchy

Expanded class hierarchy of BackupFile

File

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

Members

Contains filters are case sensitive
Namesort descending Modifiers Type Description
BackupFile::$backupName protected property
BackupFile::$directory protected property
BackupFile::$fileExtensions protected property
BackupFile::$handle protected property
BackupFile::$log protected property
BackupFile::backupName public function Get the backup name.
BackupFile::clearLog public function Clear the current log messages.
BackupFile::close public function Close a file when we're done reading/writing.
BackupFile::directory public function Get the file directory;
BackupFile::extension public function Get the file extension.
BackupFile::fileName public function Get the final filename.
BackupFile::filePath public function Get the full current filepath.
BackupFile::getContents public function Read the entire contents of the file.
BackupFile::getFileSize public function Get the file size.
BackupFile::getLog public function Return the array of current log messages.
BackupFile::lastExtension public function Get the last file extension.
BackupFile::log protected function Log any issues with reading or writing files.
BackupFile::mimetype public function Get the file mimetype.
BackupFile::open public function Open a file for reading or writing.
BackupFile::popExtension public function Remove rom the extension list.
BackupFile::pushExtension public function Add to the extension list.
BackupFile::putContents public function Write the entire contents of the file.
BackupFile::read public function Read a line from the file.
BackupFile::write public function Write a line to the file.
BackupFile::__construct public function Construct a file object used to save or load a backup from disk.