classes/manager/form/TimelineForm.inc.php

Go to the documentation of this file.
00001 <?php
00002 
00015 //$Id$
00016 
00017 import('form.Form');
00018 
00019 class TimelineForm extends Form {
00020 
00022    var $canEdit;
00023 
00028    function TimelineForm($overrideDates = false, $readOnly = false) {
00029       $this->canEdit = false;
00030       if (!$readOnly && Validation::isConferenceManager()) {
00031          $this->canEdit = true;
00032       }
00033 
00034       if ($this->canEdit) {
00035          parent::Form('manager/timelineEdit.tpl');
00036       } else {
00037          parent::Form('manager/timelineView.tpl');
00038       }
00039 
00040       if (!$overrideDates) {
00041          // Conference start must happen before conference end
00042          $this->addCheck(new FormValidatorCustom($this, 'endDate', 'required', 'manager.timeline.form.conferenceEndDateBeforeConferenceStart',
00043             create_function('$endDate,$form',
00044             'return ($endDate >= $form->getData(\'startDate\'));'),
00045             array(&$this)));
00046 
00047          // Conference start must happen before site move to archive
00048          $this->addCheck(new FormValidatorCustom($this, 'siteEndDate', 'required', 'manager.timeline.form.siteEndDateBeforeConferenceStart',
00049             create_function('$endDate,$form',
00050             'return ($endDate >= $form->getData(\'startDate\'));'),
00051             array(&$this)));
00052 
00053          // Conference start must happen after submission close
00054          $this->addCheck(new FormValidatorCustom($this, 'startDate', 'required', 'manager.timeline.form.conferenceStartDateBeforeSubmissionsClose',
00055             create_function('$startDate,$form',
00056             'return ($startDate >= $form->getData(\'submissionsCloseDate\'));'),
00057             array(&$this)));
00058 
00059          // Conference site start must happen before site end
00060          $this->addCheck(new FormValidatorCustom($this, 'siteStartDate', 'required', 'manager.timeline.form.siteEndDateBeforeSiteStart',
00061             create_function('$siteStartDate,$form',
00062             'return ($siteStartDate <= $form->getData(\'siteEndDate\'));'),
00063             array(&$this)));
00064 
00065          // Conference start must happen after site go-live
00066          $this->addCheck(new FormValidatorCustom($this, 'siteStartDate', 'required', 'manager.timeline.form.conferenceStartBeforeSiteStart',
00067             create_function('$siteStartDate,$form',
00068             'return ($siteStartDate <= $form->getData(\'startDate\'));'),
00069             array(&$this)));
00070 
00071          // Move to Conference Archive must come after Last Day of Conf
00072          $this->addCheck(new FormValidatorCustom($this, 'siteEndDate', 'required', 'manager.timeline.form.siteEndBeforeLastDay',
00073             create_function('$siteEndDate,$form',
00074             'return ($siteEndDate >= $form->getData(\'endDate\'));'),
00075             array(&$this)));
00076 
00077          // regAuthorOpenDate must be before regAuthorCloseDate
00078          $this->addCheck(new FormValidatorCustom($this, 'regAuthorOpenDate', 'required', 'manager.timeline.form.regAuthorCloseDateBeforeRegAuthorOpenDate',
00079             create_function('$regAuthorOpenDate,$form',
00080             'return ($regAuthorOpenDate <= $form->getData(\'regAuthorCloseDate\'));'),
00081             array(&$this)));
00082 
00083          // regReviewerOpenDate must be before regReviewerCloseDate
00084          $this->addCheck(new FormValidatorCustom($this, 'regReviewerOpenDate', 'required', 'manager.timeline.form.regReviewerCloseDateBeforeRegReviewerOpenDate',
00085             create_function('$regReviewerOpenDate,$form',
00086             'return ($regReviewerOpenDate <= $form->getData(\'regReviewerCloseDate\'));'),
00087             array(&$this)));
00088 
00089          // Submission CfP must come before Close Submissions
00090          $this->addCheck(new FormValidatorCustom($this, 'showCFPDate', 'required', 'manager.timeline.form.submissionsCloseBeforeCFP',
00091             create_function('$showCFPDate,$form',
00092             'return ($showCFPDate <= $form->getData(\'submissionsCloseDate\'));'),
00093             array(&$this)));
00094       }
00095       $this->addCheck(new FormValidatorPost($this));
00096    }
00097 
00103    function getOutsideDates(&$schedConf) {
00104       $dates = array();
00105       if ($schedConf->getStartDate()) $dates[] = strtotime($schedConf->getStartDate());
00106       if ($schedConf->getEndDate()) $dates[] = strtotime($schedConf->getEndDate());
00107       foreach (array(
00108          'startDate', 'endDate',
00109          'regAuthorOpenDate', 'regAuthorCloseDate',
00110          'showCFPDate',
00111          'submissionsOpenDate', 'submissionsCloseDate',
00112          'regReviewerOpenDate', 'regReviewerCloseDate', 'closeReviewProcessDate',
00113          'postAbstractsDate', 'postScheduleDate', 'postPapersDate', 'postScheduleDate',
00114          'delayOpenAccessDate', 'closeCommentsDate'
00115       ) as $dateSettingName) {
00116          $dateSetting = $schedConf->getSetting($dateSettingName);
00117          if ($dateSetting) $dates[] = $dateSetting;
00118       }
00119 
00120       $earliestDate = $latestDate = time();
00121       foreach ($dates as $date) {
00122          if (!$earliestDate || $earliestDate > $date) $earliestDate = $date;
00123          if (!$latestDate || $latestDate < $date) $latestDate = $date;
00124       }
00125 
00126       $secsPerYear = 60 * 60 * 24 * 366; // (Rounding up)
00127       $earliestDate = min($earliestDate, time() - $secsPerYear); // Last year must be included
00128       $latestDate = max($latestDate, time() + ($secsPerYear * SCHED_CONF_DATE_YEAR_OFFSET_FUTURE));
00129 
00130       return array($earliestDate, $latestDate);
00131    }
00132 
00136    function display() {
00137       $schedConf =& Request::getSchedConf();
00138       $templateMgr =& TemplateManager::getManager();
00139       $templateMgr->assign('helpTopicId','conference.currentConferences.timeline');
00140 
00141       list($earliestDate, $latestDate) = $this->getOutsideDates($schedConf);
00142       $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
00143       $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
00144 
00145       parent::display();
00146    }
00147 
00151    function initData() {
00152       $schedConf =& Request::getSchedConf();
00153 
00154       $this->_data = array(
00155          'siteStartDate' => $schedConf->getStartDate(),
00156          'siteEndDate' => $schedConf->getEndDate(),
00157 
00158          'startDate' => $schedConf->getSetting('startDate'),
00159          'endDate' => $schedConf->getSetting('endDate'),
00160 
00161          'regAuthorOpenDate' => $schedConf->getSetting('regAuthorOpenDate'),
00162          'regAuthorCloseDate' => $schedConf->getSetting('regAuthorCloseDate'),
00163          'showCFPDate' => $schedConf->getSetting('showCFPDate'),
00164          'submissionsOpenDate' => $schedConf->getSetting('submissionsOpenDate'),
00165          'submissionsCloseDate' => $schedConf->getSetting('submissionsCloseDate'),
00166          'regReviewerOpenDate' => $schedConf->getSetting('regReviewerOpenDate'),
00167          'regReviewerCloseDate' => $schedConf->getSetting('regReviewerCloseDate'),
00168          'closeReviewProcessDate' => $schedConf->getSetting('closeReviewProcessDate'),
00169          'postAbstracts' => $schedConf->getSetting('postAbstracts'),
00170          'postAbstractsDate' => $schedConf->getSetting('postAbstractsDate'),
00171          'postSchedule' => $schedConf->getSetting('postSchedule'),
00172          'postScheduleDate' => $schedConf->getSetting('postScheduleDate'),
00173          'postPapers' => $schedConf->getSetting('postPapers'),
00174          'postPapersDate' => $schedConf->getSetting('postPapersDate'),
00175          'postTimeline' => $schedConf->getSetting('postTimeline'),
00176          'postOverview' => $schedConf->getSetting('postOverview'),
00177          'postCFP' => $schedConf->getSetting('postCFP'),
00178          'postProposalSubmission' => $schedConf->getSetting('postProposalSubmission'),
00179          'postTrackPolicies' => $schedConf->getSetting('postTrackPolicies'),
00180          'postProgram' => $schedConf->getSetting('postProgram'),
00181          'postPresentations' => $schedConf->getSetting('postPresentations'),
00182          'postAccommodation' => $schedConf->getSetting('postAccommodation'),
00183          'postSupporters' => $schedConf->getSetting('postSupporters'),
00184          'postPayment' => $schedConf->getSetting('postPayment'),
00185          'delayOpenAccess' => $schedConf->getSetting('delayOpenAccess'),
00186          'delayOpenAccessDate' => $schedConf->getSetting('delayOpenAccessDate'),
00187          'closeComments' => $schedConf->getSetting('closeComments'),
00188          'closeCommentsDate' => $schedConf->getSetting('closeCommentsDate')
00189       );
00190    }
00191 
00195    function readInputData() {
00196       $this->readUserDateVars(array(
00197          'siteStartDate', 'siteEndDate',
00198          'startDate', 'endDate',
00199          'regAuthorOpenDate', 'regAuthorCloseDate',
00200          'showCFPDate',
00201          'submissionsOpenDate', 'submissionsCloseDate',
00202          'regReviewerOpenDate', 'regReviewerCloseDate', 'closeReviewProcessDate',
00203          'postAbstractsDate', 'postPapersDate', 'postScheduleDate',
00204          'delayOpenAccessDate',
00205          'closeCommentsDate'
00206       ));
00207 
00208       $this->readUserVars(array(
00209          'postAbstracts',
00210          'postPapers',
00211          'postSchedule',
00212          'delayOpenAccess',
00213          'closeComments',
00214          'postTimeline',
00215          'postOverview',
00216          'postCFP',
00217          'postProposalSubmission',
00218          'postTrackPolicies',
00219          'postProgram',
00220          'postPresentations',
00221          'postAccommodation',
00222          'postSupporters',
00223          'postPayment'
00224       ));
00225    }
00226 
00230    function execute() {
00231       $schedConfDao =& DAORegistry::getDao('SchedConfDAO');
00232       $schedConf =& Request::getSchedConf();
00233 
00234       import('conference.log.ConferenceLog');
00235       import('conference.log.ConferenceEventLogEntry');
00236 
00237       //
00238       // Don't log these, since they aren't particularly nefarious.
00239       //
00240 
00241       // Website start date and end date.
00242 
00243       if ($schedConf->getStartDate() != $this->_data['siteStartDate']) {
00244          $schedConf->setStartDate($this->_data['siteStartDate']);
00245          $schedConfDao->updateSchedConf($schedConf);
00246       }
00247 
00248       if ($schedConf->getEndDate() != $this->_data['siteEndDate']) {
00249          $schedConf->setEndDate($this->_data['siteEndDate']);
00250          $schedConfDao->updateSchedConf($schedConf);
00251       }
00252 
00253       // Conference Information display flags
00254       $schedConf->updateSetting('postTimeline', $this->getData('postTimeline'), 'bool');
00255       $schedConf->updateSetting('postOverview', $this->getData('postOverview'), 'bool');
00256       $schedConf->updateSetting('postCFP', $this->getData('postCFP'), 'bool');
00257       $schedConf->updateSetting('postProposalSubmission', $this->getData('postProposalSubmission'), 'bool');
00258       $schedConf->updateSetting('postTrackPolicies', $this->getData('postTrackPolicies'), 'bool');
00259       $schedConf->updateSetting('postProgram', $this->getData('postProgram'), 'bool');
00260       $schedConf->updateSetting('postPresentations', $this->getData('postPresentations'), 'bool');
00261       $schedConf->updateSetting('postAccommodation', $this->getData('postAccommodation'), 'bool');
00262       $schedConf->updateSetting('postSupporters', $this->getData('postSupporters'), 'bool');
00263       $schedConf->updateSetting('postPayment', $this->getData('postPayment'), 'bool');
00264       
00265 
00266       //
00267       // Log the rest.
00268       //
00269 
00270       $dateFormatShort = Config::getVar('general', 'date_format_short');
00271 
00272       // Physical scheduled conference start date and end date
00273       if ($schedConf->getSetting('startDate') != $this->_data['startDate']) {
00274          ConferenceLog::logEvent(
00275             $schedConf->getConferenceId(),
00276             $schedConf->getId(),
00277             CONFERENCE_LOG_CONFIGURATION,
00278             LOG_TYPE_DEFAULT,
00279             0, 'log.timeline.startDateChanged',
00280             array(   'oldStartDate' => strftime($dateFormatShort, $schedConf->getSetting('startDate')),
00281                'newStartDate' => strftime($dateFormatShort, $this->_data['startDate'])));
00282          $schedConf->updateSetting('startDate', $this->_data['startDate'], 'date');
00283       }
00284 
00285       if ($schedConf->getSetting('endDate') != $this->_data['endDate']) {
00286          ConferenceLog::logEvent(
00287             $schedConf->getConferenceId(),
00288             $schedConf->getId(),
00289             CONFERENCE_LOG_CONFIGURATION,
00290             LOG_TYPE_DEFAULT,
00291             0, 'log.timeline.endDateChanged',
00292             array('oldEndDate' => strftime($dateFormatShort, $schedConf->getSetting('endDate')),
00293                'newEndDate' => strftime($dateFormatShort, $this->_data['endDate'])));
00294          $schedConf->updateSetting('endDate', $this->_data['endDate'], 'date');
00295       }
00296 
00297       if ($schedConf->getSetting('regAuthorOpenDate') != $this->_data['regAuthorOpenDate']) {
00298          ConferenceLog::logEvent(
00299             $schedConf->getConferenceId(),
00300             $schedConf->getId(),
00301             CONFERENCE_LOG_CONFIGURATION,
00302             LOG_TYPE_DEFAULT,
00303             0, 'log.timeline.regAuthorOpenDateChanged',
00304             array('oldRegAuthorOpenDate' => strftime($dateFormatShort, $schedConf->getSetting('regAuthorOpenDate')),
00305                'newRegAuthorOpenDate' => strftime($dateFormatShort, $this->_data['regAuthorOpenDate'])));
00306          $schedConf->updateSetting('regAuthorOpenDate', $this->_data['regAuthorOpenDate'], 'date');
00307       }
00308       if ($schedConf->getSetting('regAuthorCloseDate') != $this->_data['regAuthorCloseDate']) {
00309          ConferenceLog::logEvent(
00310             $schedConf->getConferenceId(),
00311             $schedConf->getId(),
00312             CONFERENCE_LOG_CONFIGURATION,
00313             LOG_TYPE_DEFAULT,
00314             0, 'log.timeline.regAuthorCloseDateChanged',
00315             array('oldRegAuthorCloseDate' => strftime($dateFormatShort, $schedConf->getSetting('regAuthorCloseDate')),
00316                'newRegAuthorCloseDate' => strftime($dateFormatShort, $this->_data['regAuthorCloseDate'])));
00317          $schedConf->updateSetting('regAuthorCloseDate', $this->_data['regAuthorCloseDate'], 'date');
00318       }
00319       if ($schedConf->getSetting('showCFPDate') != $this->_data['showCFPDate']) {
00320          ConferenceLog::logEvent(
00321             $schedConf->getConferenceId(),
00322             $schedConf->getId(),
00323             CONFERENCE_LOG_CONFIGURATION,
00324             LOG_TYPE_DEFAULT,
00325             0, 'log.timeline.showCFPDateChanged',
00326             array(   'oldShowCFPDate' => strftime($dateFormatShort, $schedConf->getSetting('showCFPDate')),
00327                'newShowCFPDate' => strftime($dateFormatShort, $this->_data['showCFPDate'])));
00328          $schedConf->updateSetting('showCFPDate', $this->_data['showCFPDate'], 'date');
00329       }
00330 
00331       if ($schedConf->getSetting('submissionsOpenDate') != $this->_data['submissionsOpenDate']) {
00332          ConferenceLog::logEvent(
00333             $schedConf->getConferenceId(),
00334             $schedConf->getId(),
00335             CONFERENCE_LOG_CONFIGURATION,
00336             LOG_TYPE_DEFAULT,
00337             0, 'log.timeline.submissionsOpenDateChanged',
00338             array(   'oldSubmissionsOpenDate' => strftime($dateFormatShort, $schedConf->getSetting('submissionsOpenDate')),
00339                'newSubmissionsOpenDate' => strftime($dateFormatShort, $this->_data['submissionsOpenDate'])));
00340          $schedConf->updateSetting('submissionsOpenDate', $this->_data['submissionsOpenDate'], 'date');
00341       }
00342       if ($schedConf->getSetting('submissionsCloseDate') != $this->_data['submissionsCloseDate']) {
00343          ConferenceLog::logEvent(
00344             $schedConf->getConferenceId(),
00345             $schedConf->getId(),
00346             CONFERENCE_LOG_CONFIGURATION,
00347             LOG_TYPE_DEFAULT,
00348             0, 'log.timeline.submissionsCloseDateChanged',
00349             array('oldSubmissionsCloseDate' => strftime($dateFormatShort, $schedConf->getSetting('submissionsCloseDate')),
00350                'newSubmissionsCloseDate' => strftime($dateFormatShort, $this->_data['submissionsCloseDate'])));
00351          $schedConf->updateSetting('submissionsCloseDate', $this->_data['submissionsCloseDate'], 'date');
00352       }
00353       if ($schedConf->getSetting('regReviewerOpenDate') != $this->_data['regReviewerOpenDate']) {
00354          ConferenceLog::logEvent(
00355             $schedConf->getConferenceId(),
00356             $schedConf->getId(),
00357             CONFERENCE_LOG_CONFIGURATION,
00358             LOG_TYPE_DEFAULT,
00359             0, 'log.timeline.regReviewerOpenDateChanged',
00360             array('oldRegReviewerOpenDate' => strftime($dateFormatShort, $schedConf->getSetting('regReviewerOpenDate')),
00361                'newRegReviewerOpenDate' => strftime($dateFormatShort, $this->_data['regReviewerOpenDate'])));
00362          $schedConf->updateSetting('regReviewerOpenDate', $this->_data['regReviewerOpenDate'], 'date');
00363       }
00364       if ($schedConf->getSetting('regReviewerCloseDate') != $this->_data['regReviewerCloseDate']) {
00365          ConferenceLog::logEvent(
00366             $schedConf->getConferenceId(),
00367             $schedConf->getId(),
00368             CONFERENCE_LOG_CONFIGURATION,
00369             LOG_TYPE_DEFAULT,
00370             0, 'log.timeline.regReviewerCloseDateChanged',
00371             array('oldRegReviewerCloseDate' => strftime($dateFormatShort, $schedConf->getSetting('regReviewerCloseDate')),
00372                'newRegReviewerCloseDate' => strftime($dateFormatShort, $this->_data['regReviewerCloseDate'])));
00373          $schedConf->updateSetting('regReviewerCloseDate', $this->_data['regReviewerCloseDate'], 'date');
00374       }
00375       if ($schedConf->getSetting('postAbstractsDate') != $this->_data['postAbstractsDate']) {
00376          ConferenceLog::logEvent(
00377             $schedConf->getConferenceId(),
00378             $schedConf->getId(),
00379             CONFERENCE_LOG_CONFIGURATION,
00380             LOG_TYPE_DEFAULT,
00381             0, 'log.timeline.postAbstractsDateChanged',
00382             array(   'oldPostAbstractsDate' => strftime($dateFormatShort, $schedConf->getSetting('postAbstractsDate')),
00383                'newPostAbstractsDate' => strftime($dateFormatShort, $this->_data['postAbstractsDate'])));
00384          $schedConf->updateSetting('postAbstractsDate', $this->_data['postAbstractsDate'], 'date');
00385       }
00386       if ($schedConf->getSetting('postAbstracts') != $this->_data['postAbstracts']) {
00387          ConferenceLog::logEvent(
00388             $schedConf->getConferenceId(),
00389             $schedConf->getId(),
00390             CONFERENCE_LOG_CONFIGURATION,
00391             LOG_TYPE_DEFAULT,
00392             0, 'log.timeline.postAbstractsChanged',
00393             array(   'oldPostAbstracts' => __($schedConf->getSetting('postAbstracts')?'common.true':'common.false'),
00394                'newPostAbstracts' => __($this->_data['postAbstracts'])?'common.true':'common.false'));
00395          $schedConf->updateSetting('postAbstracts', $this->_data['postAbstracts'], 'bool');
00396       }
00397       if ($schedConf->getSetting('postScheduleDate') != $this->_data['postScheduleDate']) {
00398          ConferenceLog::logEvent(
00399             $schedConf->getConferenceId(),
00400             $schedConf->getId(),
00401             CONFERENCE_LOG_CONFIGURATION,
00402             LOG_TYPE_DEFAULT,
00403             0, 'log.timeline.postScheduleDateChanged',
00404             array(  'oldPostScheduleDate' => strftime($dateFormatShort, $schedConf->getSetting('postPapersDate')),
00405                'newPostScheduleDate' => strftime($dateFormatShort, $this->_data['postPapersDate'])));
00406          $schedConf->updateSetting('postScheduleDate', $this->_data['postScheduleDate'], 'date');
00407       }
00408       if ($schedConf->getSetting('postSchedule') != $this->_data['postSchedule']) {
00409          ConferenceLog::logEvent(
00410             $schedConf->getConferenceId(),
00411             $schedConf->getId(),
00412             CONFERENCE_LOG_CONFIGURATION,
00413             LOG_TYPE_DEFAULT,
00414             0, 'log.timeline.postScheduleChanged',
00415             array(  'oldPostSchedule' => __($schedConf->getSetting('postSchedule')?'common.true':'common.false'),
00416                'newPostSchedule' => __($this->_data['postSchedule']?'common.true':'common.false')));
00417          $schedConf->updateSetting('postSchedule', $this->_data['postSchedule'], 'bool');
00418       }
00419       if ($schedConf->getSetting('postPapersDate') != $this->_data['postPapersDate']) {
00420          ConferenceLog::logEvent(
00421             $schedConf->getConferenceId(),
00422             $schedConf->getId(),
00423             CONFERENCE_LOG_CONFIGURATION,
00424             LOG_TYPE_DEFAULT,
00425             0, 'log.timeline.postPapersDateChanged',
00426             array(   'oldPostPapersDate' => strftime($dateFormatShort, $schedConf->getSetting('postPapersDate')),
00427                'newPostPapersDate' => strftime($dateFormatShort, $this->_data['postPapersDate'])));
00428          $schedConf->updateSetting('postPapersDate', $this->_data['postPapersDate'], 'date');
00429       }
00430       if ($schedConf->getSetting('postPapers') != $this->_data['postPapers']) {
00431          ConferenceLog::logEvent(
00432             $schedConf->getConferenceId(),
00433             $schedConf->getId(),
00434             CONFERENCE_LOG_CONFIGURATION,
00435             LOG_TYPE_DEFAULT,
00436             0, 'log.timeline.postPapersChanged',
00437             array(   'oldPostPapers' => __($schedConf->getSetting('postPapers')?'common.true':'common.false'),
00438                'newPostPapers' => __($this->_data['postPapers']?'common.true':'common.false')));
00439          $schedConf->updateSetting('postPapers', $this->_data['postPapers'], 'bool');
00440       }
00441       if ($schedConf->getSetting('delayOpenAccessDate') != $this->_data['delayOpenAccessDate']) {
00442          ConferenceLog::logEvent(
00443             $schedConf->getConferenceId(),
00444             $schedConf->getId(),
00445             CONFERENCE_LOG_CONFIGURATION,
00446             LOG_TYPE_DEFAULT,
00447             0, 'log.timeline.delayOpenAccessDateChanged',
00448             array(   'oldDelayOpenAccessDate' => strftime($dateFormatShort, $schedConf->getSetting('delayOpenAccessDate')),
00449                'newDelayOpenAccessDate' => strftime($dateFormatShort, $this->_data['delayOpenAccessDate'])));
00450          $schedConf->updateSetting('delayOpenAccessDate', $this->_data['delayOpenAccessDate'], 'date');
00451       }
00452       if ($schedConf->getSetting('delayOpenAccess') != $this->_data['delayOpenAccess']) {
00453          ConferenceLog::logEvent(
00454             $schedConf->getConferenceId(),
00455             $schedConf->getId(),
00456             CONFERENCE_LOG_CONFIGURATION,
00457             LOG_TYPE_DEFAULT,
00458             0, 'log.timeline.delayOpenAccessChanged',
00459             array(   'oldDelayOpenAccess' => __($schedConf->getSetting('delayOpenAccess')?'common.true':'common.false'),
00460                'newDelayOpenAccess' => __($this->_data['delayOpenAccess']?'common.true':'common.false')));
00461          $schedConf->updateSetting('delayOpenAccess', $this->_data['delayOpenAccess'], 'bool');
00462       }
00463       if ($schedConf->getSetting('closeCommentsDate') != $this->_data['closeCommentsDate']) {
00464          ConferenceLog::logEvent(
00465             $schedConf->getConferenceId(),
00466             $schedConf->getId(),
00467             CONFERENCE_LOG_CONFIGURATION,
00468             LOG_TYPE_DEFAULT,
00469             0, 'log.timeline.closeCommentsDateChanged',
00470             array(   'oldCloseCommentsDate' => strftime($dateFormatShort, $schedConf->getSetting('closeCommentsDate')),
00471                'newCloseCommentsDate' => strftime($dateFormatShort, $this->_data['closeCommentsDate'])));
00472          $schedConf->updateSetting('closeCommentsDate', $this->_data['closeCommentsDate'], 'date');
00473       }
00474       if ($schedConf->getSetting('closeComments') != $this->_data['closeComments']) {
00475          ConferenceLog::logEvent(
00476             $schedConf->getConferenceId(),
00477             $schedConf->getId(),
00478             CONFERENCE_LOG_CONFIGURATION,
00479             LOG_TYPE_DEFAULT,
00480             0, 'log.timeline.closeCommentsChanged',
00481             array(   'oldCloseComments' => __($schedConf->getSetting('closeComments')?'common.true':'common.false'),
00482                'newCloseComments' => __($this->_data['closeComments']?'common.true':'common.false')));
00483          $schedConf->updateSetting('closeComments', $this->_data['closeComments'], 'bool');
00484       }
00485    }
00486 }
00487 
00488 ?>

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