90 if ($oVendor->getId() !=
'root') {
127 $sVendorId = $oVendor->getId();
130 $iNrOfCatArticles = (int) $this->
getConfig()->getConfigParam(
'iNrofCatArticles');
131 $iNrOfCatArticles = $iNrOfCatArticles ? $iNrOfCatArticles : 1;
133 $oArtList =
oxNew(
'oxArticleList');
134 $oArtList->setSqlLimit($iNrOfCatArticles * $this->
_getRequestPageNr(), $iNrOfCatArticles);
138 $this->_iAllArtCnt = $oArtList->loadVendorArticles($sVendorId, $oVendor);
141 $this->_iCntPages = round($this->_iAllArtCnt / $iNrOfCatArticles + 0.49);
143 return array($oArtList, $this->_iAllArtCnt);
154 return $oVendor->getId();
173 $sUrl = $oVendor->getBaseSeoLink($iLang, $iPage);
190 return $oVendor->getLink();
203 if ($this->_blVisibleSubCats === null) {
204 $this->_blVisibleSubCats =
false;
207 if ($oVendor->getId() ==
'root') {
208 $this->_blVisibleSubCats = $oVendorTree->count();
209 $this->_oSubCatList = $oVendorTree;
225 if ($this->_oSubCatList === null) {
226 $this->_oSubCatList = array();
242 if ($this->_aArticleList === null) {
243 $this->_aArticleList = array();
244 if (($oVendor = $this->
getActVendor()) && ($oVendor->getId() !=
'root')) {
245 list($aArticleList, $iAllArtCnt) = $this->
_loadArticles($oVendor);
247 $this->_aArticleList = $aArticleList;
262 if ($this->_sCatTitle === null) {
263 $this->_sCatTitle =
'';
265 $this->_sCatTitle = $oVendor->oxvendor__oxtitle->value;
280 return $oVendorTree->getPath();
301 if ($this->_oActCategory === null) {
302 $this->_oActCategory =
false;
305 $this->_oActCategory = $oVendor;
320 if ($this->_sCatTreePath === null) {
321 $this->_sCatTreePath =
false;
323 $this->_sCatTreePath = $oVendorTree->getPath();
337 if ($this->
getActVendor()->oxvendor__oxshowsuffix->value) {
338 return $this->
getConfig()->getActiveShop()->oxshops__oxtitlesuffix->value;
392 $sAddParams .= ($sAddParams ?
'&' :
'') .
"listtype={$this->_sListType}";
394 $sAddParams .=
"&cnid=v_" . $oVendor->getId();
411 foreach ($oCatTree->getPath() as $oCat) {
414 $aCatPath[
'link'] = $oCat->getLink();
415 $aCatPath[
'title'] = $oCat->oxcategories__oxtitle->value;
417 $aPaths[] = $aCatPath;
432 if ($this->
_getVendorId() && $this->_oVendorTree === null) {
434 $oVendorTree =
oxNew(
'oxVendorList');
435 $oVendorTree->buildVendorTree(
440 $this->_oVendorTree = $oVendorTree;
453 $this->_oVendorTree = $oVendorTree;