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