Open Journal Systems  2.4.8
 All Classes Namespaces Functions Variables Groups Pages
TemporaryFileManager Class Reference
Inheritance diagram for TemporaryFileManager:
PKPTemporaryFileManager PrivateFileManager FileManager

Public Member Functions

 articleToTemporaryFile ($articleFile, $userId)
 TemporaryFileManager ()
- Public Member Functions inherited from PKPTemporaryFileManager
 _performPeriodicCleanup ()
 deleteFile ($fileId, $userId)
 downloadFile ($fileId, $userId, $inline=false)
 getBasePath ()
getFile ($fileId, $userId)
 handleUpload ($fileName, $userId)
 PKPTemporaryFileManager ()
 readFile ($fileId, $userId, $output=false)
- Public Member Functions inherited from PrivateFileManager
 getBasePath ()
 PrivateFileManager ()
- Public Member Functions inherited from FileManager
 _executeGzip ($filePath, $decompress=false, &$errorMsg)
 compressFile ($filePath, &$errorMsg)
 copyDir ($source, $dest)
 copyFile ($source, $dest)
 decompressFile ($filePath, &$errorMsg)
 deleteFile ($filePath)
 downloadFile ($filePath, $mediaType=null, $inline=false, $fileName=null)
 fileExists ($filePath, $type= 'file')
 FileManager ()
 getDocumentExtension ($type)
 getDocumentType ($type)
 getExtension ($fileName)
 getImageExtension ($type)
 getNiceFileSize ($size)
 getUploadedFileName ($fileName)
 getUploadedFilePath ($fileName)
 getUploadedFileType ($fileName)
 mkdir ($dirPath, $perms=null)
 mkdirtree ($dirPath, $perms=null)
 parseFileExtension ($fileName)
readFile ($filePath, $output=false)
 rmdir ($dirPath)
 rmtree ($file)
 setMode ($path, $mask)
 truncateFileName ($fileName, $length=127)
 uploadedFileExists ($fileName)
 uploadError ($fileName)
 uploadFile ($fileName, $destFileName)
 writeFile ($dest, &$contents)

Detailed Description

Class defining operations for temporary file management.

See Also

Definition at line 20 of file

Member Function Documentation

TemporaryFileManager::articleToTemporaryFile (   $articleFile,

Create a new temporary file from an article file.

object The new TemporaryFile or false on failure

Definition at line 35 of file

References FileManager\fileExists(), PKPTemporaryFileManager\getBasePath(), Core\getCurrentDate(), DAORegistry\getDAO(), FileManager\mkdirtree(), and FileManager\parseFileExtension().

TemporaryFileManager::TemporaryFileManager ( )

Constructor. Create a manager for handling temporary file uploads.

Definition at line 25 of file

The documentation for this class was generated from the following file: