46 public function __construct( $sObjectsInListName =
'oxvendor')
61 $this->_blShowVendorArticleCnt = $blShowVendorArticleCnt;
72 $sFieldList = $oBaseObject->getSelectFields();
73 $sViewName = $oBaseObject->getViewName();
74 $this->
getBaseObject()->setShowArticleCnt( $this->_blShowVendorArticleCnt );
78 $sWhere = $oBaseObject->getSqlActiveSnippet();
79 $sWhere = $sWhere?
" where $sWhere and ":
' where ';
80 $sWhere .=
"{$sViewName}.oxtitle != '' ";
83 $sSelect =
"select {$sFieldList} from {$sViewName} {$sWhere} order by {$sViewName}.oxtitle";
98 $sActCat = str_replace(
'v_',
'', $sActCat );
105 $this->_oRoot =
oxNew(
"oxVendor" );
106 $this->_oRoot->load(
'root' );
112 foreach ( $this as $sVndId => $oVendor ) {
115 if ( $sVndId == $sActCat ) {
120 if ( $sActCat == $oVendor->oxvendor__oxid->value ) {
121 $this->_aPath[] = $oVendor;
157 $oVendor->oxcategories__oxid =
new oxField(
"v_".$oVendor->oxvendor__oxid->value);
158 $oVendor->oxcategories__oxicon = $oVendor->oxvendor__oxicon;
159 $oVendor->oxcategories__oxtitle = $oVendor->oxvendor__oxtitle;
160 $oVendor->oxcategories__oxdesc = $oVendor->oxvendor__oxshortdesc;
162 $oVendor->setIsVisible(
true );
163 $oVendor->setHasVisibleSubCats(
false );
175 $this->_oClickedVendor = $oVendor;
202 $oEncoder->getVendorUrl($this->_oRoot);
206 foreach ($this as $sVndId => $value) {
207 $oEncoder->getVendorUrl( $this->_aArray[$sVndId] );