source/Application/Controller/UserController.php
public function isNewsSubscribed()
    {
        if ($this->_blNewsSubscribed === null) {
            if (($isSubscribedToNews = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('blnewssubscribed')) === null) {
                $isSubscribedToNews = false;
            }
            if (($user = $this->getUser())) {
                $isSubscribedToNews = $user->getNewsSubscription()->getOptInStatus();
            }
            $this->_blNewsSubscribed = $isSubscribedToNews;
        }

        if (is_null($this->_blNewsSubscribed)) {
            $this->_blNewsSubscribed = false;
        }

        return $this->_blNewsSubscribed;
    }
public function isNewsSubscribed()
    {
        if ($this->_blNewsSubscribed === null) {
            if (($isSubscribedToNews = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('blnewssubscribed')) === null) {
                $isSubscribedToNews = false;
            }
            if (($user = $this->getUser())) {
                $isSubscribedToNews = $user->getNewsSubscription()->getOptInStatus();
            }
            $this->_blNewsSubscribed = $isSubscribedToNews;
        }

        if (is_null($this->_blNewsSubscribed)) {
            $this->_blNewsSubscribed = false;
        }

        return $this->_blNewsSubscribed;
    }
public function isNewsSubscribed ( ) { if ( $ this -> _blNewsSubscribed === null ) { if ( ( $ isSubscribedToNews = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'blnewssubscribed' ) ) === null ) { $ isSubscribedToNews = false ; } if ( ( $ user = $ this -> getUser ( ) ) ) { $ isSubscribedToNews = $ user -> getNewsSubscription ( ) -> getOptInStatus ( ) ; } $ this -> _blNewsSubscribed = $ isSubscribedToNews ; } if ( is_null ( $ this -> _blNewsSubscribed ) ) { $ this -> _blNewsSubscribed = false ; } return $ this -> _blNewsSubscribed ; }
Template variable getter. Returns if user subscribed for newsletter

@return bool
Template variable getter . Returns if user subscribed for newsletter