66 $this->
init(
'oxmanufacturers');
91 case 'hasVisibleSubCats':
108 $this->_blShowArticleCnt = $blShowArticleCount;
121 if ($this->_blShowArticleCnt && !$this->
isAdmin()) {
122 $this->_iNrOfArticles =
oxRegistry::get(
"oxUtilsCount")->getManufacturerArticleCount($this->
getId());
138 if ($sOxid ==
'root') {
152 $this->
setId(
'root');
172 return $oEncoder->getManufacturerUrl($this, $iLang);
175 return $oEncoder->getManufacturerPageUrl($this, $iPage, $iLang);
191 if ($iLang === null) {
195 if (!isset($this->_aSeoUrls[$iLang])) {
199 return $this->_aSeoUrls[$iLang];
216 $sUrl = $this->
getConfig()->getShopUrl($iLang,
false);
219 return $sUrl .
"index.php?cl=manufacturerlist" . ($blAddId ?
"&mnid=" . $this->
getId() :
"");
230 public function getStdLink($iLang = null, $aParams = array())
232 if ($iLang === null) {
246 if (!$this->_blShowArticleCnt || $this->
isAdmin()) {
277 $this->_blIsVisible = $blVisible;
287 if (!isset($this->_blHasVisibleSubCats)) {
288 $this->_blHasVisibleSubCats =
false;
301 $this->_blHasVisibleSubCats = $blHasVisibleSubcats;
318 public function delete($sOXID = null)
320 if (parent::delete($sOXID)) {
321 oxRegistry::get(
"oxSeoEncoderManufacturer")->onDeleteManufacturer($this);
336 if (($sIcon = $this->oxmanufacturers__oxicon->value)) {
338 $sSize = $oConfig->getConfigParam(
'sManufacturerIconsize');
340 $sSize = $oConfig->getConfigParam(
'sIconsize');
343 return oxRegistry::get(
"oxPictureHandler")->getPicUrl(
"manufacturer/icon/", $sIcon, $sSize);
364 return $this->oxmanufacturers__oxtitle->value;
374 return $this->oxmanufacturers__oxshortdesc->value;