PHP 클래스 IssueFileManager, ojs

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

공개 프로퍼티들

프로퍼티 타입 설명
$_filesDir the path to location of the files
$_issueId the associated issue ID

공개 메소드들

메소드 설명
__construct ( $issueId ) Constructor.
contentTypeToAbbrev ( $contentType ) : string Return abbreviation based on issue content type (used for naming files).
contentTypeToPath ( $contentType ) : string Return directory path based on issue content type (used for naming files).
deleteFile ( $fileId ) : boolean Delete an issue file by ID.
deleteIssueTree ( ) Delete the entire tree of files belonging to an issue.
downloadFile ( $fileId, $inline = false ) : boolean Download a file.
fromTemporaryFile ( $temporaryFile, $contentType = ISSUE_FILE_PUBLIC ) : IssueFile Create an issue galley based on a temporary file.
getFilesDir ( ) : string Get the issue files directory.
getIssueId ( ) : integer Get the issue ID.
setFilesDir ( $filesDir ) Set the issue files directory.
setIssueId ( $issueId ) Set the issue ID.

메소드 상세

__construct() 공개 메소드

Create a manager for handling issue files.
public __construct ( $issueId )
$issueId int

contentTypeToAbbrev() 공개 메소드

Return abbreviation based on issue content type (used for naming files).
public contentTypeToAbbrev ( $contentType ) : string
$contentType int
리턴 string

contentTypeToPath() 공개 메소드

Return directory path based on issue content type (used for naming files).
public contentTypeToPath ( $contentType ) : string
$contentType int
리턴 string

deleteFile() 공개 메소드

Delete an issue file by ID.
public deleteFile ( $fileId ) : boolean
$fileId int
리턴 boolean if successful

deleteIssueTree() 공개 메소드

Delete the entire tree of files belonging to an issue.
public deleteIssueTree ( )

downloadFile() 공개 메소드

Download a file.
public downloadFile ( $fileId, $inline = false ) : boolean
$fileId int the file id of the file to download
$inline print file as inline instead of attachment, optional
리턴 boolean

fromTemporaryFile() 공개 메소드

Create an issue galley based on a temporary file.
public fromTemporaryFile ( $temporaryFile, $contentType = ISSUE_FILE_PUBLIC ) : IssueFile
$temporaryFile TemporaryFile
$contentType int Issue file content type
리턴 IssueFile the resulting issue file

getFilesDir() 공개 메소드

Get the issue files directory.
public getFilesDir ( ) : string
리턴 string

getIssueId() 공개 메소드

Get the issue ID.
public getIssueId ( ) : integer
리턴 integer

setFilesDir() 공개 메소드

Set the issue files directory.
public setFilesDir ( $filesDir )
$filesDir string

setIssueId() 공개 메소드

Set the issue ID.
public setIssueId ( $issueId )
$issueId int

프로퍼티 상세

$_filesDir 공개적으로 프로퍼티

the path to location of the files
public $_filesDir

$_issueId 공개적으로 프로퍼티

the associated issue ID
public $_issueId