Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
EmailTemplatesForm.inc.php
1 <?php
2 
16 import('lib.pkp.classes.controllers.tab.settings.form.ContextSettingsForm');
17 
19 
23  function EmailTemplatesForm($wizardMode = false) {
24  $settings = array(
25  'emailHeader' => 'string',
26  'emailSignature' => 'string',
27  'envelopeSender' => 'string'
28  );
29 
30  $this->addCheck(new FormValidatorEmail($this, 'envelopeSender', 'optional', 'user.profile.form.emailRequired'));
31 
32  parent::ContextSettingsForm($settings, 'controllers/tab/settings/emailTemplates/form/emailTemplatesForm.tpl', $wizardMode);
33  }
34 
35 
36  //
37  // Implement template methods from Form.
38  //
42  function fetch($request) {
43  $params = array('envelopeSenderDisabled' => !Config::getVar('email', 'allow_envelope_sender'));
44 
45  return parent::fetch($request, $params);
46  }
47 }
48 
49 ?>
addCheck($formValidator)
Definition: Form.inc.php:396
Form validation check for email addresses.
static getVar($section, $key, $default=null)
Definition: Config.inc.php:35
Base class for forms that manage context settings data.
EmailTemplatesForm($wizardMode=false)
Form to edit email identification settings.