PHP Класс PKPManageFileApiHandler, pkp-lib

Наследование: extends Handler
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( ) Constructor.
authorize ( $request, &$args, $roleAssignments )
deleteFile ( $args, $request ) : JSONMessage Delete a file or revision
editMetadata ( $args, $request ) : JSONMessage Edit submission file metadata modal.
editMetadataTab ( $args, $request ) : JSONMessage Edit submission file metadata tab.
getFileManager ( $contextId, $submissionId ) : SubmissionFileManager Get the submission file manager.
logDeletionEvent ( $request, $submission, $submissionFile, $user ) Logs the deletion event using app-specific logging classes.
removeFileIndex ( $submission, $submissionFile ) Remove the submission file index.
saveMetadata ( $args, $request ) : JSONMessage Save the metadata of the latest revision of the requested submission file.

Защищенные методы

Метод Описание
getUpdateNotifications ( ) : array Get the list of notifications to be updated on metadata form submission.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( )

authorize() публичный Метод

public authorize ( $request, &$args, $roleAssignments )

deleteFile() публичный Метод

Delete a file or revision
public deleteFile ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

editMetadata() публичный Метод

Edit submission file metadata modal.
public editMetadata ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

editMetadataTab() публичный Метод

Edit submission file metadata tab.
public editMetadataTab ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

getFileManager() публичный Метод

Get the submission file manager.
public getFileManager ( $contextId, $submissionId ) : SubmissionFileManager
$contextId int the context id.
$submissionId int the submission id.
Результат SubmissionFileManager

getUpdateNotifications() защищенный Метод

Get the list of notifications to be updated on metadata form submission.
protected getUpdateNotifications ( ) : array
Результат array

logDeletionEvent() абстрактный публичный Метод

Must be implemented by subclasses.
abstract public logDeletionEvent ( $request, $submission, $submissionFile, $user )
$request PKPRequest
$submission Submission
$submissionFile SubmissionFile
$user PKPUser

removeFileIndex() абстрактный публичный Метод

Remove the submission file index.
abstract public removeFileIndex ( $submission, $submissionFile )
$submission Submission
$submissionFile SubmissionFile

saveMetadata() публичный Метод

Save the metadata of the latest revision of the requested submission file.
public saveMetadata ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object