You are here

public function backup_file::put_contents in Backup and Migrate 7.3

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

Write data to the file.

File

includes/files.inc, line 419
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 put_contents($data) {
  file_put_contents($this
    ->filepath(), $data);
}