You are here

function backup_file::write in Backup and Migrate 7.2

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

Write a line to the file.

File

includes/files.inc, line 278
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 write($data) {
  if (!$this->handle) {
    $this->handle = $this
      ->open(TRUE);
  }
  if ($this->handle) {
    fwrite($this->handle, $data);
  }
}