OXID eShop CE  4.9.7
 All Classes Files Functions Variables Pages
newsletter_preview.php
Go to the documentation of this file.
1 <?php
2 
9 {
10 
18  public function render()
19  {
21 
22  $soxId = $this->getEditObjectId();
23  if ($soxId != "-1" && isset($soxId)) {
24  // load object
25  $oNewsletter = oxNew("oxnewsletter");
26  $oNewsletter->load($soxId);
27  $this->_aViewData["edit"] = $oNewsletter;
28 
29  // user
30  $sUserID = oxRegistry::getSession()->getVariable("auth");
31 
32  // assign values to the newsletter and show it
33  $oNewsletter->prepare($sUserID, $this->getConfig()->getConfigParam('bl_perfLoadAktion'));
34 
35  $this->_aViewData["previewhtml"] = $oNewsletter->getHtmlText();
36  $this->_aViewData["previewtext"] = $oNewsletter->getPlainText();
37  }
38 
39  return "newsletter_preview.tpl";
40  }
41 }