66 $this->
init(
'oxvendor');
76 $this->_blShowArticleCnt = $blShowArticleCount;
89 if ($this->_blShowArticleCnt && !$this->
isAdmin()) {
106 if ($sOxid ==
'root') {
120 $this->
setId(
'root');
140 return $oEncoder->getVendorUrl($this, $iLang);
143 return $oEncoder->getVendorPageUrl($this, $iPage, $iLang);
159 if ($iLang === null) {
163 if (!isset($this->_aSeoUrls[$iLang])) {
167 return $this->_aSeoUrls[$iLang];
184 $sUrl = $this->
getConfig()->getShopUrl($iLang,
false);
187 return $sUrl .
"index.php?cl=vendorlist" . ($blAddId ?
"&cnid=v_" . $this->
getId() :
"");
198 public function getStdLink($iLang = null, $aParams = array())
200 if ($iLang === null) {
214 if (!$this->_blShowArticleCnt || $this->
isAdmin()) {
245 $this->_blIsVisible = $blVisible;
255 if (!isset($this->_blHasVisibleSubCats)) {
256 $this->_blHasVisibleSubCats =
false;
269 $this->_blHasVisibleSubCats = $blHasVisibleSubcats;
286 public function delete($sOXID = null)
288 if (parent::delete($sOXID)) {
305 if (($sIcon = $this->oxvendor__oxicon->value)) {
307 $sSize = $oConfig->getConfigParam(
'sManufacturerIconsize');
308 if (!isset($sSize)) {
309 $sSize = $oConfig->getConfigParam(
'sIconsize');
312 return oxRegistry::get(
"oxPictureHandler")->getPicUrl(
"vendor/icon/", $sIcon, $sSize);
333 return $this->oxvendor__oxtitle->value;
343 return $this->oxvendor__oxshortdesc->value;