101         $this->_iAllArtCnt = 0;
 
  105                 $this->_iAllArtCnt = $oActiveRecommList->getArtCount();
 
  108             if (
$myConfig->getConfigParam(
'bl_rssRecommListArts')) {
 
  110                 $oRss = 
oxNew(
'oxrssfeed');
 
  112                     $oRss->getRecommListArticlesTitle($oActiveRecommList),
 
  113                     $oRss->getRecommListArticlesUrl($this->_oActiveRecommList),
 
  120                 $oRecommList = 
oxNew(
'oxrecommlist');
 
  121                 $this->_iAllArtCnt = $oRecommList->getSearchRecommListCount($this->
getRecommSearch());
 
  129         if ($oList && $oList->count()) {
 
  130             $iNrofCatArticles = (int) $this->
getConfig()->getConfigParam(
'iNrofCatArticles');
 
  131             $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;
 
  132             $this->_iCntPages = round($this->_iAllArtCnt / $iNrofCatArticles + 0.49);
 
  158         $sAddParams .= ($sAddParams ? 
'&' : 
'') . 
"listtype={$this->_sListType}";
 
  161             $sAddParams .= 
"&recommid=" . $oRecommList->getId();
 
  176             $sAddParams .= 
"&searchrecomm=" . rawurlencode($sParam);
 
  199             if ($dRating !== null) {
 
  200                 $dRating = (int) $dRating;
 
  203             if ($dRating !== null && $dRating >= 1 && $dRating <= 5) {
 
  204                 $oRating = 
oxNew(
'oxrating');
 
  205                 if ($oRating->allowRating($oUser->getId(), 
'oxrecommlist', $oRecommList->getId())) {
 
  206                     $oRating->oxratings__oxuserid = 
new oxField($oUser->getId());
 
  207                     $oRating->oxratings__oxtype = 
new oxField(
'oxrecommlist');
 
  208                     $oRating->oxratings__oxobjectid = 
new oxField($oRecommList->getId());
 
  209                     $oRating->oxratings__oxrating = 
new oxField($dRating);
 
  211                     $oRecommList->addToRatingAverage($dRating);
 
  215             if (($sReviewText = trim(( 
string ) 
oxRegistry::getConfig()->getRequestParameter(
'rvw_txt', 
true)))) {
 
  216                 $oReview = 
oxNew(
'oxreview');
 
  217                 $oReview->oxreviews__oxobjectid = 
new oxField($oRecommList->getId());
 
  218                 $oReview->oxreviews__oxtype = 
new oxField(
'oxrecommlist');
 
  221                 $oReview->oxreviews__oxuserid = 
new oxField($oUser->getId());
 
  222                 $oReview->oxreviews__oxrating = 
new oxField(($dRating !== null) ? $dRating : null);
 
  248         if ($this->_aArticleList === null) {
 
  249             $this->_aArticleList = 
false;
 
  253                 $iActPage = ($iActPage < 0) ? 0 : $iActPage;
 
  256                 $iNrofCatArticles = $this->
getConfig()->getConfigParam(
'iNrofCatArticles');
 
  257                 $iNrofCatArticles = $iNrofCatArticles ? $iNrofCatArticles : 10;
 
  259                 $this->_aArticleList = $oActiveRecommList->getArticles(
 
  260                     $iNrofCatArticles * $iActPage,
 
  264                 if ($this->_aArticleList && $this->_aArticleList->count()) {
 
  265                     foreach ($this->_aArticleList as $oItem) {
 
  266                         $oItem->text = $oActiveRecommList->getArtDescription($oItem->getId());
 
  282         if ($this->_oOtherRecommList === null) {
 
  283             $this->_oOtherRecommList = 
false;
 
  285                 $oRecommLists = $oActiveRecommList->getRecommListsByIds($oList->arrayKeys());
 
  287                 unset($oRecommLists[$oActiveRecommList->getId()]);
 
  288                 $this->_oOtherRecommList = $oRecommLists;
 
  302         if ($this->_aReviews === null) {
 
  303             $this->_aReviews = 
false;
 
  305                 $this->_aReviews = $oActiveRecommList->getReviews();
 
  319         return $this->
getConfig()->getConfigParam(
'bl_perfLoadReviews');
 
  329         if ($this->_blRate === null) {
 
  330             $this->_blRate = 
false;
 
  332                 $oRating = 
oxNew(
'oxrating');
 
  334                 $this->_blRate = $oRating->allowRating($sUserVariable, 
'oxrecommlist', $oActiveRecommList->getId());
 
  348         if ($this->_dRatingValue === null) {
 
  349             $this->_dRatingValue = (double) 0;
 
  351                 $this->_dRatingValue = round($oActiveRecommList->oxrecommlists__oxrating->value, 1);
 
  365         if ($this->_iRatingCnt === null) {
 
  366             $this->_iRatingCnt = 
false;
 
  368                 $this->_iRatingCnt = $oActiveRecommList->oxrecommlists__oxratingcnt->value;
 
  382         if ($this->_oSearchRecommLists === null) {
 
  383             $this->_oSearchRecommLists = array();
 
  386                 $oRecommList = 
oxNew(
'oxrecommlist');
 
  388                 if ($oList && $oList->count()) {
 
  389                     $this->_oSearchRecommLists = $oList;
 
  404         if ($this->_sSearch === null) {
 
  405             $this->_sSearch = 
false;
 
  407                 $this->_sSearch = $sSearch;
 
  423         $aPath[0] = 
oxNew(
"oxcategory");
 
  424         $aPath[0]->setLink(
false);
 
  425         $aPath[0]->oxcategories__oxtitle = 
new oxField($oLang->translateString(
'RECOMMLIST'));
 
  428             $shopHomeURL = $this->
getConfig()->getShopHomeURL();
 
  429             $sUrl = $shopHomeURL . 
"cl=recommlist&searchrecomm=" . rawurlencode($sSearchParam);
 
  430             $sTitle = $oLang->translateString(
'RECOMMLIST_SEARCH') . 
' "' . $sSearchParam . 
'"';
 
  432             $aPath[1] = 
oxNew(
"oxcategory");
 
  433             $aPath[1]->setLink($sUrl);
 
  434             $aPath[1]->oxcategories__oxtitle = 
new oxField($sTitle);
 
  449             return $oActiveRecommList->oxrecommlists__oxtitle->value;
 
  463             $sUrl = $oRecomm->getLink();
 
  485                 $sUrl = $oRecomm->getBaseSeoLink($iLang, $iPage);
 
  504             $sAddParams .= 
"&recommid=" . $oRecomm->getId();
 
  508             $sAddParams .= 
"&searchrecomm=" . rawurlencode($sSearch);
 
  524             $sLink = $oRecomm->getLink($iLang);
 
  530             $sLink .= ((strpos($sLink, 
'?') === 
false) ? 
'?' : 
'&') . 
"searchrecomm={$sSearch}";
 
  547         $aPath[
'title'] = 
oxRegistry::getLang()->translateString(
'LISTMANIA', $iBaseLanguage, 
false);
 
  548         $aPath[
'link'] = $this->
getLink();
 
  563             $sTranslatedString = $oLang->translateString(
'LIST_BY', $oLang->getBaseLanguage(), 
false);
 
  564             $sTitleField = 
'oxrecommlists__oxtitle';
 
  565             $sAuthorField = 
'oxrecommlists__oxauthor';
 
  566             $sTitle = $aActiveList->$sTitleField->value . 
' (' . $sTranslatedString . 
' ' .
 
  567                       $aActiveList->$sAuthorField->value . 
')';
 
  569             $sTranslatedString = $oLang->translateString(
'HITS_FOR', $oLang->getBaseLanguage(), 
false);