PHP Класс PKPWorkflowHandler, pkp-lib

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

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

Метод Описание
__construct ( ) Constructor
access ( $args, $request ) Redirect users to their most appropriate submission workflow stage.
authorize ( $request, &$args, $roleAssignments )
editorDecisionActions ( $args, $request ) : JSONMessage Fetch JSON-encoded editor decision options.
editorial ( &$args, $request ) Show the editorial stage
externalReview ( $args, $request ) Show the external review stage.
index ( $args, $request ) Show the workflow stage, with the stage path as an #anchor.
initialize ( $request, $args )
production ( &$args, $request ) Show the production stage
setupTemplate ( $request ) Setup variables for the template
submission ( $args, $request ) Show the submission stage.
submissionHeader ( $args, $request ) : JSONMessage Fetch the JSON-encoded submission header.
submissionProgressBar ( $args, $request ) : JSONMessage Fetch the JSON-encoded submission progress bar.

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

Метод Описание
_redirectToIndex ( &$args, $request ) Redirect all old stage paths to index
getEditorAssignmentNotificationTypeByStageId ( $stageId ) : integer Return the editor assignment notification type based on stage id.
identifyStageId ( $request, $args ) : integer Translate the requested operation to a stage id.
isSubmissionReady ( $submission ) : boolean Checks whether or not the submission is ready to appear in catalog.
notificationOptionsByStage ( $user, $stageId, $contextId ) : boolean Determine if a particular stage has a notification pending. If so, return true.

Приватные методы

Метод Описание
_displayWorkflow ( $args, $request ) Displays the workflow tab structure.

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

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

Constructor
public __construct ( )

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

Redirect all old stage paths to index
protected _redirectToIndex ( &$args, $request )
$args array
$request PKPRequest

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

Redirect users to their most appropriate submission workflow stage.
public access ( $args, $request )
$args array
$request PKPRequest

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

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

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

Fetch JSON-encoded editor decision options.
public editorDecisionActions ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

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

Show the editorial stage
public editorial ( &$args, $request )
$args array
$request PKPRequest

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

Show the external review stage.
public externalReview ( $args, $request )
$args array
$request PKPRequest

getEditorAssignmentNotificationTypeByStageId() абстрактный защищенный Метод

Return the editor assignment notification type based on stage id.
abstract protected getEditorAssignmentNotificationTypeByStageId ( $stageId ) : integer
$stageId int
Результат integer

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

Translate the requested operation to a stage id.
protected identifyStageId ( $request, $args ) : integer
$request Request
$args array
Результат integer One of the WORKFLOW_STAGE_* constants.

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

Show the workflow stage, with the stage path as an #anchor.
public index ( $args, $request )
$args array
$request PKPRequest

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

public initialize ( $request, $args )

isSubmissionReady() абстрактный защищенный Метод

Checks whether or not the submission is ready to appear in catalog.
abstract protected isSubmissionReady ( $submission ) : boolean
$submission Submission
Результат boolean

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

This is used to set the CSS class of the submission progress bar.
protected notificationOptionsByStage ( $user, $stageId, $contextId ) : boolean
$user PKPUser
$stageId integer
$contextId integer
Результат boolean

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

Show the production stage
public production ( &$args, $request )
$args array
$request PKPRequest

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

Setup variables for the template
public setupTemplate ( $request )
$request Request

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

Show the submission stage.
public submission ( $args, $request )
$args array
$request PKPRequest

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

Fetch the JSON-encoded submission header.
public submissionHeader ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object

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

Fetch the JSON-encoded submission progress bar.
public submissionProgressBar ( $args, $request ) : JSONMessage
$args array
$request Request
Результат JSONMessage JSON object