Пример #1
0
 /**
  * Assigns values to e-mail parameters.
  * @param $paramArray array
  * @return void
  */
 function assignParams($paramArray = array())
 {
     // Add commonly-used variables to the list
     $site =& Request::getSite();
     $paramArray['principalContactSignature'] = $site->getLocalizedSetting('contactName');
     return parent::assignParams($paramArray);
 }
Пример #2
0
 /**
  * Assigns values to e-mail parameters.
  * @param $paramArray array
  * @return void
  */
 function assignParams($paramArray = array())
 {
     // Add commonly-used variables to the list
     if (isset($this->journal)) {
         // FIXME Include affiliation, title, etc. in signature?
         $paramArray['journalName'] = $this->journal->getLocalizedTitle();
         $paramArray['principalContactSignature'] = $this->journal->getSetting('contactName');
     } else {
         $site =& Request::getSite();
         $paramArray['principalContactSignature'] = $site->getLocalizedContactName();
     }
     if (!isset($paramArray['journalUrl'])) {
         $paramArray['journalUrl'] = Request::url(Request::getRequestedJournalPath());
     }
     return parent::assignParams($paramArray);
 }
Пример #3
0
 /**
  * Assigns values to e-mail parameters.
  * @param $paramArray array
  * @return void
  */
 function assignParams($paramArray = array())
 {
     // Add commonly-used variables to the list
     $conference =& Request::getConference();
     $schedConf =& Request::getSchedConf();
     if ($schedConf) {
         $paramArray['principalContactSignature'] = $schedConf->getSetting('contactName');
     } elseif ($conference) {
         $paramArray['principalContactSignature'] = $conference->getSetting('contactName');
     } else {
         $site =& Request::getSite();
         $paramArray['principalContactSignature'] = $site->getLocalizedContactName();
     }
     if (isset($conference)) {
         // FIXME Include affiliation, title, etc. in signature?
         $paramArray['conferenceName'] = $conference->getConferenceTitle();
     }
     if (!isset($paramArray['conferenceUrl'])) {
         $paramArray['conferenceUrl'] = Request::url(Request::getRequestedConferencePath(), Request::getRequestedSchedConfPath());
     }
     return parent::assignParams($paramArray);
 }