Open Journal Systems  3.3.0
LibraryFileManager Class Reference
Inheritance diagram for LibraryFileManager:
PKPLibraryFileManager PrivateFileManager FileManager

Public Member Functions

 __construct ($contextId)
 
- Public Member Functions inherited from PKPLibraryFileManager
copyFromTemporaryFile (&$temporaryFile, $libraryFileType)
 
 deleteById ($fileId)
 
 generateFileName ($type, $originalFileName)
 
 getBasePath ()
 
 getFileSuffixFromType ($type)
 
 getNameFromType ($type)
 
 getTitleKeyFromType ($type)
 
getTypeNameMap ()
 
getTypeSuffixMap ()
 
getTypeTitleKeyMap ()
 
- Public Member Functions inherited from PrivateFileManager
 __construct ()
 
- Public Member Functions inherited from FileManager
 compressFile ($filePath)
 
 copyDir ($source, $dest)
 
 copyFile ($source, $dest)
 
 decompressFile ($filePath)
 
 deleteByPath ($filePath)
 
 downloadByPath ($filePath, $mediaType=null, $inline=false, $fileName=null)
 
 fileExists ($filePath, $type='file')
 
 getDocumentExtension ($type)
 
 getDocumentType ($type)
 
 getExtension ($fileName)
 
 getFirstUploadedPostName ()
 
 getImageExtension ($type)
 
 getNiceFileSize ($size)
 
 getUploadedFileName ($fileName)
 
 getUploadedFilePath ($fileName)
 
 getUploadedFileType ($fileName)
 
 getUploadErrorCode ($fileName)
 
 mkdir ($dirPath, $perms=null)
 
 mkdirtree ($dirPath, $perms=null)
 
 parseFileExtension ($fileName)
 
 readFileFromPath ($filePath, $output=false)
 
 rmdir ($dirPath)
 
 rmtree ($file)
 
 setMode ($path, $mask)
 
 truncateFileName ($fileName, $length=127)
 
 uploadedFileExists ($fileName)
 
 uploadError ($fileName)
 
 uploadFile ($fileName, $destFileName)
 
 writeFile ($dest, &$contents)
 

Additional Inherited Members

- Data Fields inherited from PKPLibraryFileManager
 $contextId
 
- Data Fields inherited from PrivateFileManager
 $filesDir
 

Detailed Description

Wrapper class for uploading files to a site/context' library directory.

Definition at line 18 of file LibraryFileManager.inc.php.

Constructor & Destructor Documentation

◆ __construct()

LibraryFileManager::__construct (   $contextId)

Constructor

Parameters
$contextIdint

Reimplemented from PKPLibraryFileManager.

Definition at line 24 of file LibraryFileManager.inc.php.

References PKPLibraryFileManager\$contextId.


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