Open Journal Systems  3.3.0
PublicFileManager Class Reference
Inheritance diagram for PublicFileManager:
PKPPublicFileManager FileManager

Public Member Functions

 getContextFilesPath ($contextId)
 
- Public Member Functions inherited from PKPPublicFileManager
 copyContextFile ($contextId, $sourceFile, $destFileName)
 
 getSiteFilesPath ()
 
 removeContextFile ($contextId, $fileName)
 
 removeSiteFile ($fileName)
 
 uploadContextFile ($contextId, $fileName, $destFileName)
 
 uploadSiteFile ($fileName, $destFileName)
 
 writeContextFile ($contextId, $destFileName, $contents)
 
- Public Member Functions inherited from FileManager
 __construct ()
 
 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)
 

Detailed Description

Wrapper class for uploading files to a site/journal's public directory.

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

Member Function Documentation

◆ getContextFilesPath()

PublicFileManager::getContextFilesPath (   $contextId)

Get the path to a context's public files directory.

Parameters
$assocTypeint Assoc type for context
$contextIdint Context ID
Returns
string

Reimplemented from PKPPublicFileManager.

Definition at line 22 of file PublicFileManager.inc.php.

References Config\getVar().


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