Метод | Описание | |
---|---|---|
__construct ( ) | Constructor. | |
_getAccessPolicy ( $request, $args, $roleAssignments, $fileIdAndRevision = null ) : SubmissionFileAccessPolicy | return the application specific file access policy. | |
_getFileManager ( $contextId, $submissionId ) : SubmissionFileManager | return the application specific file manager. | |
authorize ( $request, &$args, $roleAssignments ) | ||
downloadAllFiles ( $args, $request ) | Download all passed files. | |
downloadFile ( $args, $request ) | Download a file. | |
downloadLibraryFile ( $args, $request ) | Download a library file. | |
enableLinkAction ( $args, $request ) : JSONMessage | Returns a data changd event to re-enable the link action. Refactored out of recordDownload since library files do not have downloads recorded and are in a different context. | |
recordDownload ( $args, $request ) : string | Record file download and return js event to update grid rows. | |
recordView ( $submissionFile ) | record a file view. |
public _getAccessPolicy ( $request, $args, $roleAssignments, $fileIdAndRevision = null ) : SubmissionFileAccessPolicy | ||
$request | PKPRequest | |
$args | ||
$roleAssignments | array | |
$fileIdAndRevision | array optional | |
Результат | SubmissionFileAccessPolicy |
public _getFileManager ( $contextId, $submissionId ) : SubmissionFileManager | ||
$contextId | int the context for this manager. | |
$submissionId | int the submission id. | |
Результат | SubmissionFileManager |
public downloadAllFiles ( $args, $request ) | ||
$args | array | |
$request | Request |
public downloadFile ( $args, $request ) | ||
$args | array | |
$request | Request |
public downloadLibraryFile ( $args, $request ) | ||
$args | array | |
$request | Request |
public enableLinkAction ( $args, $request ) : JSONMessage | ||
$args | aray | |
$request | Request | |
Результат | JSONMessage | JSON object |
public recordDownload ( $args, $request ) : string | ||
$args | array | |
$request | Request | |
Результат | string |
public recordView ( $submissionFile ) | ||
$submissionFile | SubmissionFile the file to record. |