uploadFile($fileName, $this->getJournalFilesPath($journalId) . '/' . $destFileName); } /** * Write a file to a journals's public directory. * @param $journalId int * @param $destFileName string the destination file name * @param $contents string the contents to write to the file * @return boolean */ function writeJournalFile($journalId, $destFileName, &$contents) { return $this->writeFile($this->getJournalFilesPath($journalId) . '/' . $destFileName, $contents); } /** * Copy a file to a journals's public directory. * @param $journalId int * @param $sourceFile string the source of the file to copy * @param $destFileName string the destination file name * @return boolean */ function copyJournalFile($journalId, $sourceFile, $destFileName) { return $this->copyFile($sourceFile, $this->getJournalFilesPath($journalId) . '/' . $destFileName); } /** * Delete a file from a journal's public directory. * @param $journalId int * @param $fileName string the target file name * @return boolean */ function removeJournalFile($journalId, $fileName) { return $this->deleteFile($this->getJournalFilesPath($journalId) . '/' . $fileName); } } ?>