Open Journal Systems
3.3.0
|
Public Member Functions | |
copyContextFile ($contextId, $sourceFile, $destFileName) | |
getContextFilesPath ($contextId) | |
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) | |
Wrapper class for uploading files to a site/journal's public directory.
Definition at line 19 of file PKPPublicFileManager.inc.php.
PKPPublicFileManager::copyContextFile | ( | $contextId, | |
$sourceFile, | |||
$destFileName | |||
) |
Copy a file to a context's public directory.
$contextId | int Context ID |
$sourceFile | string the source of the file to copy |
$destFileName | string the destination file name |
Definition at line 76 of file PKPPublicFileManager.inc.php.
References FileManager\copyFile(), and getContextFilesPath().
|
abstract |
Get the path to a context's public files directory.
$assocType | int Assoc type for context |
$contextId | int Context ID |
Reimplemented in PublicFileManager.
Referenced by copyContextFile(), removeContextFile(), uploadContextFile(), and writeContextFile().
PKPPublicFileManager::getSiteFilesPath | ( | ) |
Get the path to the site public files directory.
Definition at line 25 of file PKPPublicFileManager.inc.php.
References Config\getVar().
Referenced by removeSiteFile(), and uploadSiteFile().
PKPPublicFileManager::removeContextFile | ( | $contextId, | |
$fileName | |||
) |
Delete a file from a context's public directory.
$contextId | int Context ID |
$fileName | string the target file name |
Definition at line 86 of file PKPPublicFileManager.inc.php.
References FileManager\deleteByPath(), and getContextFilesPath().
PKPPublicFileManager::removeSiteFile | ( | $fileName | ) |
Delete a file from the site's public directory.
$fileName | string the target file name |
Definition at line 95 of file PKPPublicFileManager.inc.php.
References FileManager\deleteByPath(), and getSiteFilesPath().
PKPPublicFileManager::uploadContextFile | ( | $contextId, | |
$fileName, | |||
$destFileName | |||
) |
Upload a file to a context's public directory.
$contextId | int The context ID |
$fileName | string the name of the file in the upload form |
$destFileName | string the destination file name |
Definition at line 44 of file PKPPublicFileManager.inc.php.
References getContextFilesPath(), and FileManager\uploadFile().
PKPPublicFileManager::uploadSiteFile | ( | $fileName, | |
$destFileName | |||
) |
Upload a file to the site's public directory.
$fileName | string the name of the file in the upload form |
$destFileName | string the destination file name |
Definition at line 65 of file PKPPublicFileManager.inc.php.
References getSiteFilesPath(), and FileManager\uploadFile().
PKPPublicFileManager::writeContextFile | ( | $contextId, | |
$destFileName, | |||
$contents | |||
) |
Write a file to a context's public directory.
$contextId | int Context ID |
$destFileName | string the destination file name |
$contents | string the contents to write to the file |
Definition at line 55 of file PKPPublicFileManager.inc.php.
References getContextFilesPath(), and FileManager\writeFile().