Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($submission, $reviewRound) | |
_getMailTemplateKey ($context) | |
_isValidReviewer ($context, $submission, $reviewRound, $reviewerId) | |
execute (... $functionParams) | |
fetch ($request, $template=null, $display=false) | |
getAdvancedSearchAction ($request) | |
getReviewerFormActions () | |
getReviewRound () | |
getSubmission () | |
getSubmissionId () | |
getUserRoles () | |
initData () | |
readInputData () | |
setReviewerFormAction ($action) | |
setReviewRound ($reviewRound) | |
setSubmission ($submission) | |
setUserRoles ($userRoles) | |
![]() | |
__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) | |
Data Fields | |
$_reviewerFormActions | |
$_reviewRound | |
$_submission | |
$_userRoles | |
![]() | |
$_checks | |
$_data | |
$_errors | |
$_template | |
$cssValidation | |
$defaultLocale | |
$errorFields | |
$errorsArray | |
$formSectionErrors | |
$requiredLocale | |
$supportedLocales | |
Base Form for adding a reviewer to a submission. N.B. Requires a subclass to implement the "reviewerId" to be added.
Definition at line 19 of file ReviewerForm.inc.php.
ReviewerForm::__construct | ( | $submission, | |
$reviewRound | |||
) |
Constructor.
$submission | Submission |
$reviewRound | ReviewRound |
Reimplemented in AdvancedSearchReviewerForm, CreateReviewerForm, and EnrollExistingReviewerForm.
Definition at line 37 of file ReviewerForm.inc.php.
References Form\addCheck(), setReviewRound(), and setSubmission().
ReviewerForm::_getMailTemplateKey | ( | $context | ) |
Get the email template key depending on if reviewer one click access is enabled or not as well as on review round.
$context | Context The user's current context. |
Definition at line 478 of file ReviewerForm.inc.php.
References getReviewRound().
Referenced by fetch(), and initData().
ReviewerForm::_isValidReviewer | ( | $context, | |
$submission, | |||
$reviewRound, | |||
$reviewerId | |||
) |
Check if a given user id is enrolled in reviewer user group.
$context | Context |
$submission | Submission |
$reviewRound | ReviewRound |
$reviewerId | int |
Definition at line 460 of file ReviewerForm.inc.php.
References DAORegistry\getDAO().
Referenced by execute(), and initData().
ReviewerForm::execute | ( | $functionParams | ) |
Save review assignment
Reimplemented from Form.
Reimplemented in CreateReviewerForm, and EnrollExistingReviewerForm.
Definition at line 322 of file ReviewerForm.inc.php.
References _isValidReviewer(), fatalError(), PKPApplication\get(), Application\getContextAssocType(), Core\getCurrentDate(), DAORegistry\getDAO(), Form\getData(), getReviewRound(), getSubmission(), and getSubmissionId().
ReviewerForm::fetch | ( | $request, | |
$template = null , |
|||
$display = false |
|||
) |
Returns a string of the rendered form
$request | PKPRequest |
$template | string the template to be rendered, mandatory if no template has been specified on class instantiation. |
$display | boolean |
Reimplemented from Form.
Reimplemented in CreateReviewerForm, AdvancedSearchReviewerForm, and EnrollExistingReviewerForm.
Definition at line 223 of file ReviewerForm.inc.php.
References _getMailTemplateKey(), PKPServices\get(), Application\getContextAssocType(), DAORegistry\getDAO(), PKPTemplateManager\getManager(), getReviewerFormActions(), getReviewRound(), getSubmission(), and Form\setData().
ReviewerForm::getAdvancedSearchAction | ( | $request | ) |
Get the link action that fetchs the advanced search form content
$request | Request |
Definition at line 433 of file ReviewerForm.inc.php.
References getReviewRound(), and getSubmissionId().
Referenced by EnrollExistingReviewerForm\fetch(), and CreateReviewerForm\fetch().
ReviewerForm::getReviewerFormActions | ( | ) |
Get all of the reviewer form actions
Definition at line 124 of file ReviewerForm.inc.php.
References $_reviewerFormActions.
Referenced by fetch().
ReviewerForm::getReviewRound | ( | ) |
Get the ReviewRound
Definition at line 76 of file ReviewerForm.inc.php.
References $_reviewRound.
Referenced by _getMailTemplateKey(), execute(), AdvancedSearchReviewerForm\fetch(), fetch(), getAdvancedSearchAction(), and initData().
ReviewerForm::getSubmission | ( | ) |
Get the submission
Definition at line 68 of file ReviewerForm.inc.php.
References $_submission.
Referenced by execute(), AdvancedSearchReviewerForm\fetch(), fetch(), getSubmissionId(), and initData().
ReviewerForm::getSubmissionId | ( | ) |
Get the submission Id
Definition at line 59 of file ReviewerForm.inc.php.
References getSubmission().
Referenced by execute(), AdvancedSearchReviewerForm\fetch(), getAdvancedSearchAction(), and initData().
ReviewerForm::getUserRoles | ( | ) |
Get current user roles.
Definition at line 116 of file ReviewerForm.inc.php.
References $_userRoles.
Referenced by AdvancedSearchReviewerForm\fetch().
ReviewerForm::initData | ( | ) |
Initialize form data for a new form.
Reimplemented from Form.
Definition at line 133 of file ReviewerForm.inc.php.
References _getMailTemplateKey(), _isValidReviewer(), PKPApplication\get(), DAORegistry\getDAO(), getReviewRound(), Application\getSectionDAO(), getSubmission(), getSubmissionId(), AppLocale\requireComponents(), and Form\setData().
ReviewerForm::readInputData | ( | ) |
Assign form data to user-submitted data.
Reimplemented from Form.
Reimplemented in CreateReviewerForm, EnrollExistingReviewerForm, and AdvancedSearchReviewerForm.
Definition at line 300 of file ReviewerForm.inc.php.
References Form\readUserVars().
ReviewerForm::setReviewerFormAction | ( | $action | ) |
Set a reviewer form action
$action | LinkAction |
Definition at line 100 of file ReviewerForm.inc.php.
Referenced by EnrollExistingReviewerForm\fetch(), AdvancedSearchReviewerForm\fetch(), and CreateReviewerForm\fetch().
ReviewerForm::setReviewRound | ( | $reviewRound | ) |
Set the ReviewRound
$reviewRound | ReviewRound |
Definition at line 92 of file ReviewerForm.inc.php.
Referenced by __construct().
ReviewerForm::setSubmission | ( | $submission | ) |
Set the submission
$submission | Submission |
Definition at line 84 of file ReviewerForm.inc.php.
Referenced by __construct().
ReviewerForm::setUserRoles | ( | $userRoles | ) |
Set current user roles.
$userRoles | Array |
Definition at line 108 of file ReviewerForm.inc.php.
ReviewerForm::$_reviewerFormActions |
An array of actions for the other reviewer forms
Definition at line 27 of file ReviewerForm.inc.php.
Referenced by getReviewerFormActions().
ReviewerForm::$_reviewRound |
The review round associated with the review assignment
Definition at line 24 of file ReviewerForm.inc.php.
Referenced by getReviewRound().
ReviewerForm::$_submission |
The submission associated with the review assignment
Definition at line 21 of file ReviewerForm.inc.php.
Referenced by getSubmission().
ReviewerForm::$_userRoles |
An array with all current user roles
Definition at line 30 of file ReviewerForm.inc.php.
Referenced by getUserRoles().