source/Application/Model/Newsletter.php
protected function _setParams($blPerfLoadAktion = false)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $oShop = oxNew(\OxidEsales\Eshop\Application\Model\Shop::class);
        $oShop->load($myConfig->getShopId());

        $oView = oxNew(\OxidEsales\Eshop\Application\Controller\FrontendController::class);
        $oShop = $oView->addGlobalParams($oShop);

        $oView->addTplParam('myshop', $oShop);
        $oView->addTplParam('shop', $oShop);
        $oView->addTplParam('oViewConf', $oShop);
        $oView->addTplParam('oView', $oView);
        $oView->addTplParam('mycurrency', $myConfig->getActShopCurrencyObject());
        $oView->addTplParam('myuser', $this->_oUser);

        $this->_assignProducts($oView, $blPerfLoadAktion);

        $aInput[] = [$this->getId() . 'html', $this->oxnewsletter__oxtemplate->value];
        $aInput[] = [$this->getId() . 'plain', $this->oxnewsletter__oxplaintemplate->value];
        $aRes = \OxidEsales\Eshop\Core\Registry::getUtilsView()->parseThroughSmarty($aInput, null, $oView, true);

        $this->_sHtmlText = $aRes[0];
        $this->_sPlainText = $aRes[1];
    }
protected function _setParams($blPerfLoadAktion = false)
    {
        $myConfig = \OxidEsales\Eshop\Core\Registry::getConfig();

        $oShop = oxNew(\OxidEsales\Eshop\Application\Model\Shop::class);
        $oShop->load($myConfig->getShopId());

        $oView = oxNew(\OxidEsales\Eshop\Application\Controller\FrontendController::class);
        $oShop = $oView->addGlobalParams($oShop);

        $oView->addTplParam('myshop', $oShop);
        $oView->addTplParam('shop', $oShop);
        $oView->addTplParam('oViewConf', $oShop);
        $oView->addTplParam('oView', $oView);
        $oView->addTplParam('mycurrency', $myConfig->getActShopCurrencyObject());
        $oView->addTplParam('myuser', $this->_oUser);

        $this->_assignProducts($oView, $blPerfLoadAktion);

        $aInput[] = [$this->getId() . 'html', $this->oxnewsletter__oxtemplate->value];
        $aInput[] = [$this->getId() . 'plain', $this->oxnewsletter__oxplaintemplate->value];
        $aRes = \OxidEsales\Eshop\Core\Registry::getUtilsView()->parseThroughSmarty($aInput, null, $oView, true);

        $this->_sHtmlText = $aRes[0];
        $this->_sPlainText = $aRes[1];
    }
protected function _setParams ( $ blPerfLoadAktion = false ) { $ myConfig = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) ; $ oShop = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Shop :: class ) ; $ oShop -> load ( $ myConfig -> getShopId ( ) ) ; $ oView = oxNew ( \ OxidEsales \ Eshop \ Application \ Controller \ FrontendController :: class ) ; $ oShop = $ oView -> addGlobalParams ( $ oShop ) ; $ oView -> addTplParam ( 'myshop' , $ oShop ) ; $ oView -> addTplParam ( 'shop' , $ oShop ) ; $ oView -> addTplParam ( 'oViewConf' , $ oShop ) ; $ oView -> addTplParam ( 'oView' , $ oView ) ; $ oView -> addTplParam ( 'mycurrency' , $ myConfig -> getActShopCurrencyObject ( ) ) ; $ oView -> addTplParam ( 'myuser' , $ this -> _oUser ) ; $ this -> _assignProducts ( $ oView , $ blPerfLoadAktion ) ; $ aInput [ ] = [ $ this -> getId ( ) . 'html' , $ this -> oxnewsletter__oxtemplate -> value ] ; $ aInput [ ] = [ $ this -> getId ( ) . 'plain' , $ this -> oxnewsletter__oxplaintemplate -> value ] ; $ aRes = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsView ( ) -> parseThroughSmarty ( $ aInput , null , $ oView , true ) ; $ this -> _sHtmlText = $ aRes [ 0 ] ; $ this -> _sPlainText = $ aRes [ 1 ] ; }
Assigns to Smarty oxuser object, add newsletter products,
adds products which fit to the last order of
this user, generates HTML and plaintext format newsletters.

@param bool $blPerfLoadAktion perform option load actions
Assigns to Smarty oxuser object add newsletter products adds products which fit to the last order of this user generates HTML and plaintext format newsletters .