You are here

public function backup_migrate_destination::create_info_file in Backup and Migrate 7.3

Same name and namespace in other branches
  1. 8.2 includes/destinations.inc \backup_migrate_destination::create_info_file()
  2. 8.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
  3. 6.3 includes/destinations.inc \backup_migrate_destination::create_info_file()
  4. 7.2 includes/destinations.inc \backup_migrate_destination::create_info_file()

Create an ini file and write the meta data.

1 call to backup_migrate_destination::create_info_file()
backup_migrate_destination::save_file_info in includes/destinations.inc
Save the file metadata.

File

includes/destinations.inc, line 949

Class

backup_migrate_destination
A base class for creating destinations.

Code

public function create_info_file($file) {
  $info = $this
    ->_file_info_file($file);
  $data = _backup_migrate_array_to_ini($file->file_info);
  $info
    ->put_contents($data);
  return $info;
}