source/Application/Model/ManufacturerList.php
public function buildManufacturerTree($sLinkTarget, $sActCat, $sShopHomeUrl)
    {
        //Load manufacturer list
        $this->loadManufacturerList();


        //Create fake manufacturer root category
        $this->_oRoot = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
        $this->_oRoot->load("root");

        //category fields
        $this->_addCategoryFields($this->_oRoot);
        $this->_aPath[] = $this->_oRoot;

        foreach ($this as $sVndId => $oManufacturer) {
            // storing active manufacturer object
            if ((string)$sVndId === $sActCat) {
                $this->setClickManufacturer($oManufacturer);
            }

            $this->_addCategoryFields($oManufacturer);
            if ($sActCat == $oManufacturer->oxmanufacturers__oxid->value) {
                $this->_aPath[] = $oManufacturer;
            }
        }

        $this->_seoSetManufacturerData();
    }
public function buildManufacturerTree($sLinkTarget, $sActCat, $sShopHomeUrl)
    {
        //Load manufacturer list
        $this->loadManufacturerList();


        //Create fake manufacturer root category
        $this->_oRoot = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
        $this->_oRoot->load("root");

        //category fields
        $this->_addCategoryFields($this->_oRoot);
        $this->_aPath[] = $this->_oRoot;

        foreach ($this as $sVndId => $oManufacturer) {
            // storing active manufacturer object
            if ((string)$sVndId === $sActCat) {
                $this->setClickManufacturer($oManufacturer);
            }

            $this->_addCategoryFields($oManufacturer);
            if ($sActCat == $oManufacturer->oxmanufacturers__oxid->value) {
                $this->_aPath[] = $oManufacturer;
            }
        }

        $this->_seoSetManufacturerData();
    }
public function buildManufacturerTree ( $ sLinkTarget , $ sActCat , $ sShopHomeUrl ) { //Load manufacturer list $ this -> loadManufacturerList ( ) ; //Create fake manufacturer root category $ this -> _oRoot = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Manufacturer :: class ) ; $ this -> _oRoot -> load ( "root" ) ; //category fields $ this -> _addCategoryFields ( $ this -> _oRoot ) ; $ this -> _aPath [ ] = $ this -> _oRoot ; foreach ( $ this as $ sVndId => $ oManufacturer ) { // storing active manufacturer object if ( ( string ) $ sVndId === $ sActCat ) { $ this -> setClickManufacturer ( $ oManufacturer ) ; } $ this -> _addCategoryFields ( $ oManufacturer ) ; if ( $ sActCat == $ oManufacturer -> oxmanufacturers__oxid -> value ) { $ this -> _aPath [ ] = $ oManufacturer ; } } $ this -> _seoSetManufacturerData ( ) ; }
Creates fake root for manufacturer tree, and ads category list fileds for each manufacturer item

@param string $sLinkTarget  Name of class, responsible for category rendering
@param string $sActCat      Active category
@param string $sShopHomeUrl base shop url ($myConfig->getShopHomeUrl())
Creates fake root for manufacturer tree and ads category list fileds for each manufacturer item