function backup_file::write in Backup and Migrate 8.2
Same name and namespace in other branches
- 8.3 includes/files.inc \backup_file::write()
- 6.3 includes/files.inc \backup_file::write()
- 6.2 includes/files.inc \backup_file::write()
- 7.3 includes/files.inc \backup_file::write()
- 7.2 includes/files.inc \backup_file::write()
Write a line to the file.
File
- includes/
files.inc, line 271 - 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);
}
}