Open Journal Systems  3.3.0
PrivateFileManager Class Reference
Inheritance diagram for PrivateFileManager:
FileManager ContextFileManager PKPLibraryFileManager TemporaryFileManager BaseSubmissionFileManager LibraryFileManager SubmissionFileManager

Public Member Functions

 __construct ()
 
 getBasePath ()
 
- 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)
 

Data Fields

 $filesDir
 

Detailed Description

Class defining operations for private file management.

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

Constructor & Destructor Documentation

◆ __construct()

PrivateFileManager::__construct ( )

Constructor

Reimplemented from FileManager.

Reimplemented in TemporaryFileManager.

Definition at line 26 of file PrivateFileManager.inc.php.

References getBasePath().

Member Function Documentation

◆ getBasePath()

PrivateFileManager::getBasePath ( )

Get the base path for file storage.

Returns
string

Reimplemented in BaseSubmissionFileManager, ContextFileManager, PKPLibraryFileManager, and TemporaryFileManager.

Definition at line 35 of file PrivateFileManager.inc.php.

References Config\getVar().

Referenced by __construct().

Field Documentation

◆ $filesDir

PrivateFileManager::$filesDir

var $filesDir

Definition at line 21 of file PrivateFileManager.inc.php.


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