classes/manager/form/schedConfSetup/SchedConfSetupStep3Form.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 import("manager.form.schedConfSetup.SchedConfSetupForm");
00016 
00017 class SchedConfSetupStep3Form extends SchedConfSetupForm {
00018 
00019    function SchedConfSetupStep3Form() {
00020       parent::SchedConfSetupForm(
00021          3,
00022          array(
00023             'reviewPolicy' => 'string',
00024             'reviewGuidelines' => 'string',
00025             'remindForInvite' => 'int',
00026             'remindForSubmit' => 'int',
00027             'rateReviewerOnQuality' => 'int',
00028             'restrictReviewerFileAccess' => 'int',
00029             'reviewerAccessKeysEnabled' => 'int',
00030             'reviewDeadlineType' => 'int',
00031             'numDaysBeforeInviteReminder' => 'int',
00032             'numDaysBeforeSubmitReminder' => 'int',
00033             'numWeeksPerReviewRelative'   => 'int',
00034             'numWeeksPerReviewAbsolute'   => 'date',
00035             'notifyAllAuthorsOnDecision' => 'bool'
00036          )
00037       );
00038 
00039       $this->addCheck(new FormValidatorEmail($this, 'copySubmissionAckAddress', 'optional', 'user.profile.form.emailRequired'));
00040    }
00041 
00046    function getLocaleFieldNames() {
00047       return array('reviewPolicy', 'reviewGuidelines');
00048    }
00049    
00050    
00054    function readInputData() {
00055       $settingNames = array_keys($this->settings);
00056       $this->readUserVars($settingNames);
00057       $this->readUserDateVars(array('numWeeksPerReviewAbsolute'));
00058    }
00059 
00063    function display() {
00064       $templateMgr =& TemplateManager::getManager();
00065 
00066       import('mail.MailTemplate');
00067       $mail = new MailTemplate('SUBMISSION_ACK');
00068       if ($mail->isEnabled()) {
00069          $templateMgr->assign('submissionAckEnabled', true);
00070       }
00071 
00072       if ($this->_data['reviewDeadlineType'] == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
00073          $templateMgr->assign('absoluteReviewDate', $this->_data['numWeeksPerReviewAbsolute']);
00074       }
00075 
00076       if (Config::getVar('general', 'scheduled_tasks'))
00077          $templateMgr->assign('scheduledTasksEnabled', true);
00078 
00079       import('manager.form.TimelineForm');
00080       $schedConf =& Request::getSchedConf();
00081       list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
00082       $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
00083       $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
00084 
00085       parent::display();
00086    }
00087    
00088 
00089 }
00090 
00091 ?>

Generated on 25 Jul 2013 for Open Conference Systems by  doxygen 1.4.7