newsletter_preview.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class Newsletter_Preview extends oxAdminDetails
00009 {
00017     public function render()
00018     {
00019         parent::render();
00020 
00021         $soxId = oxConfig::getParameter( "oxid");
00022         if ( $soxId != "-1" && isset( $soxId)) {
00023             // load object
00024             $oNewsletter = oxNew( "oxnewsletter" );
00025             $oNewsletter->load( $soxId);
00026             $this->_aViewData["edit"] =  $oNewsletter;
00027 
00028             // user
00029             $sUserID = oxSession::getVar( "auth");
00030 
00031             // assign values to the newsletter and show it
00032             $oNewsletter->prepare( $sUserID, $this->getConfig()->getConfigParam( 'bl_perfLoadAktion' ) );
00033 
00034             $this->_aViewData["previewhtml"] =  $oNewsletter->getHtmlText();
00035             $this->_aViewData["previewtext"] =  $oNewsletter->getPlainText();
00036         }
00037 
00038         return "newsletter_preview.tpl";
00039     }
00040 }

Generated on Wed Apr 22 12:26:29 2009 for OXID eShop CE by  doxygen 1.5.5