46 public function __construct( $sObjectsInListName =
'oxmanufacturer')
61 $this->_blShowManufacturerArticleCnt = $blShowManufacturerArticleCnt;
73 $sFieldList = $oBaseObject->getSelectFields();
74 $sViewName = $oBaseObject->getViewName();
75 $this->
getBaseObject()->setShowArticleCnt( $this->_blShowManufacturerArticleCnt );
79 $sWhere = $oBaseObject->getSqlActiveSnippet();
80 $sWhere = $sWhere?
" where $sWhere and ":
' where ';
81 $sWhere .=
"{$sViewName}.oxtitle != '' ";
84 $sSelect =
"select {$sFieldList} from {$sViewName} {$sWhere} order by {$sViewName}.oxtitle";
104 $this->_oRoot =
oxNew(
"oxManufacturer" );
105 $this->_oRoot->load(
"root" );
111 foreach ( $this as $sVndId => $oManufacturer ) {
114 if ( $sVndId == $sActCat ) {
119 if ( $sActCat == $oManufacturer->oxmanufacturers__oxid->value ) {
120 $this->_aPath[] = $oManufacturer;
156 $oManufacturer->oxcategories__oxid =
new oxField( $oManufacturer->oxmanufacturers__oxid->value );
157 $oManufacturer->oxcategories__oxicon = $oManufacturer->oxmanufacturers__oxicon;
158 $oManufacturer->oxcategories__oxtitle = $oManufacturer->oxmanufacturers__oxtitle;
159 $oManufacturer->oxcategories__oxdesc = $oManufacturer->oxmanufacturers__oxshortdesc;
161 $oManufacturer->setIsVisible(
true );
162 $oManufacturer->setHasVisibleSubCats(
false );
174 $this->_oClickedManufacturer = $oManufacturer;
201 $oEncoder->getManufacturerUrl($this->_oRoot);
205 foreach ($this as $sVndId => $value) {
206 $oEncoder->getManufacturerUrl( $this->_aArray[$sVndId] );