Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
SubmissionStageForm.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.tab.settings.form.ContextSettingsForm');
17 
19 
23  function SubmissionStageForm($wizardMode = false) {
24  $settings = array(
25  'copySubmissionAckPrimaryContact' => 'bool',
26  'copySubmissionAckAddress' => 'string'
27  );
28 
29  $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress'));
30 
31  parent::ContextSettingsForm($settings, 'controllers/tab/settings/submissionStage/form/submissionStageForm.tpl', $wizardMode);
32  }
33 
37  function fetch($request, $params = null) {
38  $templateMgr = TemplateManager::getManager($request);
39 
40  import('lib.pkp.classes.mail.MailTemplate');
41  $mail = new MailTemplate('SUBMISSION_ACK');
42  $templateMgr->assign('submissionAckDisabled', !$mail->isEnabled());
43 
44  return parent::fetch($request, $params);
45  }
46 }
47 
48 ?>
addCheck($formValidator)
Definition: Form.inc.php:396
fetch($request, $params=null)
Form to edit submission stage information.
Form validation check for email addresses.
Base class for forms that manage context settings data.
Subclass of Mail for mailing a template email.
SubmissionStageForm($wizardMode=false)