Open Journal Systems  3.3.0
SendReviewsForm Class Reference
Inheritance diagram for SendReviewsForm:
EditorDecisionWithEmailForm EditorDecisionForm Form

Public Member Functions

 __construct ($submission, $decision, $stageId, $reviewRound=null)
 
 _getDecisions ()
 
 execute (... $functionArgs)
 
 fetch ($request, $template=null, $display=false)
 
 initData ($actionLabels=array())
 
 readInputData ()
 
- Public Member Functions inherited from EditorDecisionWithEmailForm
 _getAllowedVariables ($request)
 
 _getAllowedVariablesType ()
 
 _sendReviewMailToAuthor ($submission, $emailKey, $request)
 
 _updateReviewRoundStatus ($submission, $status, $reviewRound=null)
 
 getSaveFormOperation ()
 
 setSaveFormOperation ($saveFormOperation)
 
- Public Member Functions inherited from EditorDecisionForm
 __construct ($submission, $decision, $stageId, $template, $reviewRound=null)
 
 _initiateReviewRound ($submission, $stageId, $request, $status=null)
 
 getDecision ()
 
 getReviewRound ()
 
 getStageId ()
 
 getSubmission ()
 
- Public Member Functions inherited from Form
 _decomposeArray ($name, $value, $stack)
 
 addCheck ($formValidator)
 
 addError ($field, $message)
 
 addErrorField ($field)
 
 addSupportedFormLocale ($supportedLocale)
 
 display ($request=null, $template=null)
 
 getData ($key)
 
 getDefaultFormLocale ()
 
 getErrorsArray ()
 
 getLocaleFieldNames ()
 
 getRequiredLocale ()
 
 getTemplate ()
 
 initData ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Data Fields inherited from EditorDecisionWithEmailForm
 $_saveFormOperation
 
- Data Fields inherited from EditorDecisionForm
 $_decision
 
 $_reviewRound
 
 $_stageId
 
 $_submission
 
- Data Fields inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $defaultLocale
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form to request additional work from the author (Request revisions or resubmit for review), or to decline the submission.

Definition at line 22 of file SendReviewsForm.inc.php.

Constructor & Destructor Documentation

◆ __construct()

SendReviewsForm::__construct (   $submission,
  $decision,
  $stageId,
  $reviewRound = null 
)

Constructor.

Parameters
$submissionSubmission
$decisionint
$stageIdint
$reviewRoundReviewRound

Reimplemented from Form.

Definition at line 30 of file SendReviewsForm.inc.php.

References _getDecisions(), fatalError(), and EditorDecisionWithEmailForm\setSaveFormOperation().

Member Function Documentation

◆ _getDecisions()

SendReviewsForm::_getDecisions ( )

Get this form decisions.

Returns
array

Definition at line 156 of file SendReviewsForm.inc.php.

Referenced by __construct(), execute(), and initData().

◆ execute()

SendReviewsForm::execute (   $functionArgs)

Execute the form's action. (Note that it is assumed that the form has already been validated.)

Parameters
mixed$functionArgs,...Arguments from the caller to be passed to the hook consumer
Returns
mixed Result from the consumer to be passed to the caller. Send a true-ish result if you want the caller to do something with the return value.

Reimplemented from Form.

Definition at line 98 of file SendReviewsForm.inc.php.

References _getDecisions(), EditorDecisionWithEmailForm\_sendReviewMailToAuthor(), EditorDecisionWithEmailForm\_updateReviewRoundStatus(), fatalError(), PKPApplication\get(), EditorDecisionForm\getDecision(), EditorDecisionForm\getReviewRound(), EditorDecisionForm\getStageId(), and EditorDecisionForm\getSubmission().

◆ fetch()

SendReviewsForm::fetch (   $request,
  $template = null,
  $display = false 
)

Returns a string of the rendered form

Parameters
$requestPKPRequest
$templatestring the template to be rendered, mandatory if no template has been specified on class instantiation.
$displayboolean
Returns
string the rendered form

Reimplemented from EditorDecisionWithEmailForm.

Definition at line 68 of file SendReviewsForm.inc.php.

References PKPTemplateManager\getManager(), and EditorDecisionForm\getSubmission().

◆ initData()

SendReviewsForm::initData (   $actionLabels = array())

Initialize form data for a new form.

Reimplemented from EditorDecisionWithEmailForm.

Definition at line 50 of file SendReviewsForm.inc.php.

References _getDecisions(), PKPApplication\get(), and EditorDecisionForm\getStageId().

◆ readInputData()

SendReviewsForm::readInputData ( )

Assign form data to user-submitted data. Can be overridden from subclasses.

Reimplemented from EditorDecisionWithEmailForm.

Definition at line 60 of file SendReviewsForm.inc.php.

References Form\readUserVars().


The documentation for this class was generated from the following file: