コード例 #1
0
 /**
  * displayNewsletterDetail()
  *
  * @param int/array subscriber group ids
  *
  * Usage:
  * • alternative view of newsletter_body content only (instead of FileManager view '/get_file/display_newsletter)
  * • directly called by clicking a link in the newsletter_display_list
  * • configured as detail view in case the list view and detail view are displayed in different container
  *
  * @return Template
  */
 private function displayNewsletterDetail($aSubscriberGroupId)
 {
     $this->setNewsletter($aSubscriberGroupId);
     if (self::$NEWSLETTER) {
         $oTemplate = $this->constructTemplate('newsletter_display_detail');
         $oTemplate->replaceIdentifier('body', RichtextUtil::parseStorageForOutput(self::$NEWSLETTER->getNewsletterBody(), false));
         $oTemplate->replaceIdentifier('date_prefix', TranslationPeer::getString('wns.newsletter.newsletter_of_date_prefix'));
         $oTemplate->replaceIdentifier('date', self::$NEWSLETTER->getLastSent());
         return $oTemplate;
     }
 }