66 $this->
init(
'oxvendor');
78 $this->_blShowArticleCnt = $blShowArticleCount;
93 if ( $this->_blShowArticleCnt && !$this->
isAdmin() ) {
94 $this->_iNrOfArticles =
oxRegistry::get(
"oxUtilsCount")->getVendorArticleCount( $this->
getId() );
110 if ( $sOxid ==
'root' ) {
123 $this->
setId(
'root' );
143 return $oEncoder->getVendorUrl( $this, $iLang );
145 return $oEncoder->getVendorPageUrl( $this, $iPage, $iLang );
161 if ( $iLang === null ) {
165 if ( !isset( $this->_aSeoUrls[$iLang] ) ) {
169 return $this->_aSeoUrls[$iLang];
186 $sUrl = $this->
getConfig()->getShopUrl( $iLang,
false );
189 return $sUrl .
"index.php?cl=vendorlist" . ( $blAddId ?
"&cnid=v_".$this->getId() :
"" );
200 public function getStdLink( $iLang = null, $aParams = array() )
202 if ( $iLang === null ) {
216 if ( !$this->_blShowArticleCnt || $this->
isAdmin() ) {
251 $this->_blIsVisible = $blVisible;
261 if ( !isset( $this->_blHasVisibleSubCats ) ) {
262 $this->_blHasVisibleSubCats =
false;
277 $this->_blHasVisibleSubCats = $blHasVisibleSubcats;
296 public function delete( $sOXID = null)
298 if ( parent::delete( $sOXID ) ) {
313 if ( ( $sIcon = $this->oxvendor__oxicon->value ) ) {
315 $sSize = $oConfig->getConfigParam(
'sManufacturerIconsize' );
316 if ( !isset( $sSize ) ) {
317 $sSize = $oConfig->getConfigParam(
'sIconsize' );
320 return oxRegistry::get(
"oxPictureHandler")->getPicUrl(
"vendor/icon/", $sIcon, $sSize );
341 return $this->oxvendor__oxtitle->value;
351 return $this->oxvendor__oxshortdesc->value;