Property | Type | Description | |
---|---|---|---|
$_filesDir | the path to location of the files | ||
$_issueId | the associated issue ID |
Method | Description | |
---|---|---|
__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. |
public __construct ( $issueId ) | ||
$issueId | int |
public contentTypeToAbbrev ( $contentType ) : string | ||
$contentType | int | |
return | string |
public contentTypeToPath ( $contentType ) : string | ||
$contentType | int | |
return | string |
public deleteFile ( $fileId ) : boolean | ||
$fileId | int | |
return | boolean | if successful |
public deleteIssueTree ( ) |
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 | |
return | boolean |
public fromTemporaryFile ( $temporaryFile, $contentType = ISSUE_FILE_PUBLIC ) : IssueFile | ||
$temporaryFile | TemporaryFile | |
$contentType | int Issue file content type | |
return | IssueFile | the resulting issue file |
public getFilesDir ( ) : string | ||
return | string |
public setFilesDir ( $filesDir ) | ||
$filesDir | string |