interface TempFileAdapterInterface in Backup and Migrate 8.4
Provides a service to provision temp files in the correct place for the environment.
Hierarchy
- interface \BackupMigrate\Core\File\TempFileAdapterInterface
Expanded class hierarchy of TempFileAdapterInterface
All classes that implement TempFileAdapterInterface
1 file declares its use of TempFileAdapterInterface
- DrupalTempFileAdapter.php in src/
File/ DrupalTempFileAdapter.php
File
- lib/
backup_migrate_core/ src/ File/ TempFileAdapterInterface.php, line 8
Namespace
BackupMigrate\Core\FileView source
interface TempFileAdapterInterface {
/**
* Get a temporary file that can be written to.
*
* @param string $ext The file extension to add to the temp file.
*
* @return string The path to the file.
*/
public function createTempFile($ext = '');
/**
* Delete a temporary file.
*
* @param string $filename The path to the file.
*/
public function deleteTempFile($filename);
/**
* Delete all temp files which have been created.
*/
public function deleteAllTempFiles();
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
TempFileAdapterInterface:: |
public | function | Get a temporary file that can be written to. | 1 |
TempFileAdapterInterface:: |
public | function | Delete all temp files which have been created. | 1 |
TempFileAdapterInterface:: |
public | function | Delete a temporary file. | 1 |