Open Journal Systems  2.4.4
 All Classes Namespaces Functions Variables Groups Pages
PKPPublicFileManager Class Reference
Inheritance diagram for PKPPublicFileManager:
FileManager PublicFileManager

Public Member Functions

 getSiteFilesPath ()
 
 PKPPublicFileManager ()
 
 removeSiteFile ($fileName)
 
 uploadSiteFile ($fileName, $destFileName)
 
- Public Member Functions inherited from FileManager
 copyDir ($source, $dest)
 
 copyFile ($source, $dest)
 
 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

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

Definition at line 19 of file PKPPublicFileManager.inc.php.

Member Function Documentation

PKPPublicFileManager::getSiteFilesPath ( )

Get the path to the site public files directory.

Returns
string

Definition at line 32 of file PKPPublicFileManager.inc.php.

References Config\getVar().

Referenced by removeSiteFile(), and uploadSiteFile().

PKPPublicFileManager::PKPPublicFileManager ( )

Constructor

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

PKPPublicFileManager::removeSiteFile (   $fileName)

Delete a file from the site's public directory.

Parameters
$fileNamestring the target file name
Returns
boolean

Definition at line 51 of file PKPPublicFileManager.inc.php.

References FileManager\deleteFile(), and getSiteFilesPath().

PKPPublicFileManager::uploadSiteFile (   $fileName,
  $destFileName 
)

Upload a file to the site's public directory.

Parameters
$fileNamestring the name of the file in the upload form
$destFileNamestring the destination file name
Returns
boolean

Definition at line 42 of file PKPPublicFileManager.inc.php.

References getSiteFilesPath(), and FileManager\uploadFile().


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