
Public Member Functions | |
| storeTemporaryFile (spunQ_File $temporaryFile, $originalFileName) | |
| Temporarily stores a file. | |
| retrieveTemporaryFile ($identifier) | |
| Gets the temporary file identified by the given string. | |
Implemented for the multi upload module.
Definition at line 7 of file ITemporaryFileProvider.interface.php.
| spunQ_ITemporaryFileProvider::retrieveTemporaryFile | ( | $ | identifier | ) |
Gets the temporary file identified by the given string.
E.g. used to convert submitted form values to files. The retrieved file should have the same file name as the original file. Therefore, temporary file providers will have to use a folder structure to avoid collisions.
| $string | The identifier of the file. |
Implemented in spunQ_LocalTemporaryFileProvider.
| spunQ_ITemporaryFileProvider::storeTemporaryFile | ( | spunQ_File $ | temporaryFile, | |
| $ | originalFileName | |||
| ) |
Temporarily stores a file.
Returns an identifier which may later be used to fetch the stored file. The string consists of a randomized string and the original filename. Thus, we cannot loose the original name of the file.
| $file | The file to store. | |
| $originalFileName | The original name of the file. |
Implemented in spunQ_LocalTemporaryFileProvider.
1.5.9