
Public Member Functions | |
| deleteFile ($fileName) | |
| downloadFile ($filePath, $fileType, $inline=false) | |
| JournalFileManager (&$journal) | |
| uploadFile ($fileName, $destFileName) | |
Definition at line 20 of file JournalFileManager.inc.php.
| JournalFileManager.deleteFile | ( | $ | filePath | ) |
Delete a file.
| $filePath | string the location of the file to be deleted |
Reimplemented from FileManager.
Definition at line 50 of file JournalFileManager.inc.php.
| JournalFileManager.downloadFile | ( | $ | filePath, | |
| $ | type, | |||
| $ | inline = false | |||
| ) |
Download a file. Outputs HTTP headers and file content for download
| $filePath | string the location of the file to be sent | |
| $type | string the MIME type of the file, optional | |
| $inline | print file as inline instead of attachment, optional |
Reimplemented from FileManager.
Definition at line 46 of file JournalFileManager.inc.php.
| JournalFileManager.JournalFileManager | ( | &$ | journal | ) |
Constructor. Create a manager for handling journal file uploads.
| $journalId | int |
Definition at line 36 of file JournalFileManager.inc.php.
References Config.getVar().
| JournalFileManager.uploadFile | ( | $ | fileName, | |
| $ | destFileName | |||
| ) |
Upload a file.
| $fileName | string the name of the file used in the POST form | |
| $dest | string the path where the file is to be saved |
Reimplemented from FileManager.
Definition at line 42 of file JournalFileManager.inc.php.
1.5.6