66 $this->
init(
'oxmanufacturers');
91 case 'hasVisibleSubCats':
110 $this->_blShowArticleCnt = $blShowArticleCount;
125 if ( $this->_blShowArticleCnt && !$this->
isAdmin() ) {
126 $this->_iNrOfArticles =
oxRegistry::get(
"oxUtilsCount")->getManufacturerArticleCount( $this->
getId() );
142 if ( $sOxid ==
'root' ) {
155 $this->
setId(
'root' );
175 return $oEncoder->getManufacturerUrl( $this, $iLang );
177 return $oEncoder->getManufacturerPageUrl( $this, $iPage, $iLang );
193 if ( $iLang === null ) {
197 if ( !isset( $this->_aSeoUrls[$iLang] ) ) {
201 return $this->_aSeoUrls[$iLang];
218 $sUrl = $this->
getConfig()->getShopUrl( $iLang,
false );
221 return $sUrl .
"index.php?cl=manufacturerlist" . ( $blAddId ?
"&mnid=".$this->getId() :
"" );
232 public function getStdLink( $iLang = null, $aParams = array() )
234 if ( $iLang === null ) {
248 if ( !$this->_blShowArticleCnt || $this->
isAdmin() ) {
283 $this->_blIsVisible = $blVisible;
293 if ( !isset( $this->_blHasVisibleSubCats ) ) {
294 $this->_blHasVisibleSubCats =
false;
309 $this->_blHasVisibleSubCats = $blHasVisibleSubcats;
328 public function delete( $sOXID = null)
330 if ( parent::delete( $sOXID ) ) {
331 oxRegistry::get(
"oxSeoEncoderManufacturer")->onDeleteManufacturer( $this );
344 if ( ( $sIcon = $this->oxmanufacturers__oxicon->value ) ) {
346 $sSize = $oConfig->getConfigParam(
'sManufacturerIconsize' );
348 $sSize = $oConfig->getConfigParam(
'sIconsize' );
351 return oxRegistry::get(
"oxPictureHandler")->getPicUrl(
"manufacturer/icon/", $sIcon, $sSize );
372 return $this->oxmanufacturers__oxtitle->value;
382 return $this->oxmanufacturers__oxshortdesc->value;