Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
AdvancedSearchReviewerForm.inc.php
1 <?php
2 
16 import('lib.pkp.controllers.grid.users.reviewer.form.ReviewerForm');
17 
24  function AdvancedSearchReviewerForm($submission, $reviewRound) {
25  parent::ReviewerForm($submission, $reviewRound);
26  $this->setTemplate('controllers/grid/users/reviewer/form/advancedSearchReviewerForm.tpl');
27 
28  $this->addCheck(new FormValidator($this, 'reviewerId', 'required', 'editor.review.mustSelect'));
29  }
30 
35  function readInputData() {
36  parent::readInputData();
37 
38  $this->readUserVars(array('reviewerId'));
39  }
40 
46  function fetch($request) {
47  $searchByNameAction = $this->getSearchByNameAction($request);
48 
49  $this->setReviewerFormAction($searchByNameAction);
50  return parent::fetch($request);
51  }
52 }
53 
54 ?>
addCheck($formValidator)
Definition: Form.inc.php:396
readUserVars($vars)
Definition: Form.inc.php:364
setReviewerFormAction($action)
Base Form for adding a reviewer to a submission. N.B. Requires a subclass to implement the &quot;reviewerI...
setTemplate($template)
Definition: Form.inc.php:121
Class to represent a form validation check.
AdvancedSearchReviewerForm($submission, $reviewRound)
Form for an advanced search and for adding a reviewer to a submission.
getSearchByNameAction($request)