ArchiveWriterInterface.php in Backup and Migrate 5.0.x
Namespace
Drupal\backup_migrate\Core\ServiceFile
src/Core/Service/ArchiveWriterInterface.phpView source
<?php
namespace Drupal\backup_migrate\Core\Service;
use Drupal\backup_migrate\Core\File\BackupFileWritableInterface;
/**
* Interface ArchiveReaderInterface.
*
* @package Drupal\backup_migrate\Core\Service
*/
interface ArchiveWriterInterface {
/**
* 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 \Drupal\backup_migrate\Core\File\BackupFileWritableInterface $out
*/
public function setArchive(BackupFileWritableInterface $out);
/**
* @param string $real_path
* The real path to the file. Can be a stream URI.
* @param string $new_path
* The path that the file should have in the archive. Leave blank to use the
* original path.
*
* @return
*/
public function addFile($real_path, $new_path = '');
/**
* 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();
}
Interfaces
Name![]() |
Description |
---|---|
ArchiveWriterInterface | Interface ArchiveReaderInterface. |