메소드 | 설명 | |
---|---|---|
__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 | |
리턴 | boolean |
public getContextFilesPath ( $assocType, $contextId ) : string | ||
$assocType | int Assoc type for context | |
$contextId | int Press ID | |
리턴 | string |
public getJournalFilesPath ( $journalId ) : string | ||
$journalId | int | |
리턴 | string |
public removeJournalFile ( $journalId, $fileName ) : boolean | ||
$journalId | int | |
$fileName | string the target file name | |
리턴 | 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 | |
리턴 | boolean |
public writeJournalFile ( $journalId, $destFileName, $contents ) : boolean | ||
$journalId | int | |
$destFileName | string the destination file name | |
$contents | string the contents to write to the file | |
리턴 | boolean |