public function backup_migrate_destination::save_file_info in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.2 includes/destinations.inc \backup_migrate_destination::save_file_info()
- 8.3 includes/destinations.inc \backup_migrate_destination::save_file_info()
- 6.3 includes/destinations.inc \backup_migrate_destination::save_file_info()
- 7.2 includes/destinations.inc \backup_migrate_destination::save_file_info()
Save the file metadata.
Return value
object The file object after it has been saved.
1 call to backup_migrate_destination::save_file_info()
- backup_migrate_destination::save_file in includes/
destinations.inc - Save the given file to the destination.
File
- includes/
destinations.inc, line 844
Class
- backup_migrate_destination
- A base class for creating destinations.
Code
public function save_file_info($file, $settings) {
$info = $this
->create_info_file($file);
// Save the info file and the actual file.
return $this
->_save_file($info, $settings);
}