Open Journal Systems  3.3.0
CreateReviewerForm Class Reference
Inheritance diagram for CreateReviewerForm:
ReviewerForm Form

Public Member Functions

 __construct ($submission, $reviewRound)
 
 execute (... $functionArgs)
 
 fetch ($request, $template=null, $display=false)
 
 readInputData ()
 
- Public Member Functions inherited from ReviewerForm
 _getMailTemplateKey ($context)
 
 _isValidReviewer ($context, $submission, $reviewRound, $reviewerId)
 
 getAdvancedSearchAction ($request)
 
 getReviewerFormActions ()
 
 getReviewRound ()
 
 getSubmission ()
 
 getSubmissionId ()
 
 getUserRoles ()
 
 initData ()
 
 setReviewerFormAction ($action)
 
 setReviewRound ($reviewRound)
 
 setSubmission ($submission)
 
 setUserRoles ($userRoles)
 
- Public Member Functions inherited from Form
 __construct ($template=null, $callHooks=true, $requiredLocale=null, $supportedLocales=null)
 
 _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 ()
 
 isValid ()
 
 readUserVars ($vars)
 
 setData ($key, $value=null)
 
 setDefaultFormLocale ($defaultLocale)
 
 setTemplate ($template)
 
 validate ($callHooks=true)
 

Additional Inherited Members

- Data Fields inherited from ReviewerForm
 $_reviewerFormActions
 
 $_reviewRound
 
 $_submission
 
 $_userRoles
 
- Data Fields inherited from Form
 $_checks
 
 $_data
 
 $_errors
 
 $_template
 
 $cssValidation
 
 $defaultLocale
 
 $errorFields
 
 $errorsArray
 
 $formSectionErrors
 
 $requiredLocale
 
 $supportedLocales
 

Detailed Description

Form for creating and subsequently adding a reviewer to a submission.

Definition at line 18 of file CreateReviewerForm.inc.php.

Constructor & Destructor Documentation

◆ __construct()

CreateReviewerForm::__construct (   $submission,
  $reviewRound 
)

Constructor.

Parameters
$submissionSubmission
$reviewRoundReviewRound

Reimplemented from ReviewerForm.

Definition at line 24 of file CreateReviewerForm.inc.php.

References Form\addCheck(), Form\addSupportedFormLocale(), PKPApplication\get(), DAORegistry\getDAO(), and Form\setTemplate().

Member Function Documentation

◆ execute()

CreateReviewerForm::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 ReviewerForm.

Definition at line 86 of file CreateReviewerForm.inc.php.

References Validation\encryptCredentials(), Validation\generatePassword(), PKPApplication\get(), Core\getCurrentDate(), DAORegistry\getDAO(), Form\getData(), and Form\setData().

◆ fetch()

CreateReviewerForm::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 ReviewerForm.

Definition at line 55 of file CreateReviewerForm.inc.php.

References ReviewerForm\getAdvancedSearchAction(), PKPTemplateManager\getManager(), and ReviewerForm\setReviewerFormAction().

◆ readInputData()

CreateReviewerForm::readInputData ( )

Assign form data to user-submitted data.

See also
Form::readInputData()

Reimplemented from ReviewerForm.

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

References Form\readUserVars().


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