Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
copyJournalFile ( $journalId, $sourceFile, $destFileName ) : boolean | Copy a file to a journals's public directory. | |
getContextFilesPath ( $assocType, $contextId ) : string | Get the path to a journal's public files directory. | |
getJournalFilesPath ( $journalId ) : string | Get the path to a journal's public files directory. | |
removeJournalFile ( $journalId, $fileName ) : boolean | Delete a file from a journal's public directory. | |
uploadJournalFile ( $journalId, $fileName, $destFileName ) : boolean | Upload a file to a journals's public directory. | |
writeJournalFile ( $journalId, $destFileName, $contents ) : boolean | Write a file to a journals's public directory. |
public copyJournalFile ( $journalId, $sourceFile, $destFileName ) : boolean | ||
$journalId | int | |
$sourceFile | string the source of the file to copy | |
$destFileName | string the destination file name | |
return | boolean |
public getContextFilesPath ( $assocType, $contextId ) : string | ||
$assocType | int Assoc type for context | |
$contextId | int Press ID | |
return | string |
public getJournalFilesPath ( $journalId ) : string | ||
$journalId | int | |
return | string |
public removeJournalFile ( $journalId, $fileName ) : boolean | ||
$journalId | int | |
$fileName | string the target file name | |
return | boolean |
public uploadJournalFile ( $journalId, $fileName, $destFileName ) : boolean | ||
$journalId | int | |
$fileName | string the name of the file in the upload form | |
$destFileName | string the destination file name | |
return | boolean |
public writeJournalFile ( $journalId, $destFileName, $contents ) : boolean | ||
$journalId | int | |
$destFileName | string the destination file name | |
$contents | string the contents to write to the file | |
return | boolean |