PHP 클래스 PublicFileManager, ojs

상속: extends FileManager
파일 보기 프로젝트 열기: pkp/ojs 1 사용 예제들

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( )

copyJournalFile() 공개 메소드

Copy 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

getContextFilesPath() 공개 메소드

Get the path to a journal's public files directory.
public getContextFilesPath ( $assocType, $contextId ) : string
$assocType int Assoc type for context
$contextId int Press ID
리턴 string

getJournalFilesPath() 공개 메소드

Get the path to a journal's public files directory.
public getJournalFilesPath ( $journalId ) : string
$journalId int
리턴 string

removeJournalFile() 공개 메소드

Delete a file from a journal's public directory.
public removeJournalFile ( $journalId, $fileName ) : boolean
$journalId int
$fileName string the target file name
리턴 boolean

uploadJournalFile() 공개 메소드

Upload a file to a journals's public directory.
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

writeJournalFile() 공개 메소드

Write a file to a journals's public directory.
public writeJournalFile ( $journalId, $destFileName, $contents ) : boolean
$journalId int
$destFileName string the destination file name
$contents string the contents to write to the file
리턴 boolean