public function SourceInterface::importFromFile in Backup and Migrate 8.4
Import to this source from the given backup file. This is the main restore function for this source.
Parameters
\BackupMigrate\Core\File\BackupFileReadableInterface $file: The file to read the backup from. It will not be opened for reading
2 methods override SourceInterface::importFromFile()
- FileDirectorySource::importFromFile in lib/
backup_migrate_core/ src/ Source/ FileDirectorySource.php - Import to this source from the given backup file. This is the main restore function for this source.
- MySQLiSource::importFromFile in lib/
backup_migrate_core/ src/ Source/ MySQLiSource.php - Import to this source from the given backup file. This is the main restore function for this source.
File
- lib/
backup_migrate_core/ src/ Source/ SourceInterface.php, line 29
Class
- SourceInterface
- Provides an interface defining a backup source.
Namespace
BackupMigrate\Core\SourceCode
public function importFromFile(BackupFileReadableInterface $file);