public function backup_file::write in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/files.inc \backup_file::write()
- 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.2 includes/files.inc \backup_file::write()
Write a line to the file.
File
- includes/
files.inc, line 394 - 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 write($data) {
if (!$this->handle) {
$this->handle = $this
->open(TRUE);
}
if ($this->handle) {
fwrite($this->handle, $data);
}
}