recommadd.php

Go to the documentation of this file.
00001 <?php
00002 
00008 class RecommAdd extends Details
00009 {
00010 
00016     protected $_sThisTemplate = 'page/account/recommendationadd.tpl';
00017 
00023     protected $_aUserRecommList = null;
00024 
00030     public function render()
00031     {
00032         oxUBase::render();
00033 
00034         return $this->_sThisTemplate;
00035     }
00036 
00042     public function getRecommLists()
00043     {
00044         if ($this->_aUserRecommList === null) {
00045             $oUser = $this->getUser();
00046             if ($oUser) {
00047                 $this->_aUserRecommList = $oUser->getUserRecommLists();
00048             }
00049         }
00050 
00051         return $this->_aUserRecommList;
00052     }
00053 
00059     public function getTitle()
00060     {
00061         $oProduct = $this->getProduct();
00062 
00063         return $oProduct->oxarticles__oxtitle->value . ' ' . $oProduct->oxarticles__oxvarselect->value;
00064     }
00065 }