interface ArchiverInterface in Backup and Migrate 8.4
Interface ArchiveWriterInterface.
@package BackupMigrate\Core\Environment
Hierarchy
- interface \BackupMigrate\Core\Service\ArchiverInterface
Expanded class hierarchy of ArchiverInterface
All classes that implement ArchiverInterface
1 file declares its use of ArchiverInterface
- DrupalSiteArchiveSource.php in src/
Source/ DrupalSiteArchiveSource.php
File
- lib/
backup_migrate_core/ src/ Service/ ArchiverInterface.php, line 12
Namespace
BackupMigrate\Core\ServiceView source
interface ArchiverInterface {
/**
* Get the file extension for this archiver. For a tarball writer this would
* be 'tar'. For a Zip file writer this would be 'zip'.
*
* @return string
*/
public function getFileExt();
/**
* @param \BackupMigrate\Core\File\BackupFileReadableInterface $out
*/
public function setArchive(BackupFileReadableInterface $out);
/**
* Extract all files to the given directory.
*
* @param $directory
*
* @return mixed
*/
public function extractTo($directory);
/**
* @param string $real_path
* The real path to the file. Can be a stream URI.
* @param string $base_dir
* The base directory of the path to be removed when the file is added.
* @return
*/
public function addFile($real_path, $base_dir = '');
/**
* This will be called when all files have been added. It gives the implementation
* a chance to clean up and commit the changes if needed.
*
* @return mixed
*/
public function closeArchive();
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ArchiverInterface:: |
public | function | ||
ArchiverInterface:: |
public | function | This will be called when all files have been added. It gives the implementation a chance to clean up and commit the changes if needed. | |
ArchiverInterface:: |
public | function | Extract all files to the given directory. | |
ArchiverInterface:: |
public | function | Get the file extension for this archiver. For a tarball writer this would be 'tar'. For a Zip file writer this would be 'zip'. | |
ArchiverInterface:: |
public | function |