source/Application/Controller/FrontendController.php
public function getActManufacturer()
    {
        // if active Manufacturer is not set yet - trying to load it from request params
        // this may be useful when category component was unable to load active Manufacturer
        // and we still need some object to mount navigation info
        if ($this->_oActManufacturer === null) {
            $this->_oActManufacturer = false;
            $manufacturerId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('mnid');
            $manufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
            if ($manufacturer->load($manufacturerId)) {
                $this->_oActManufacturer = $manufacturer;
            }
        }

        return $this->_oActManufacturer;
    }
public function getActManufacturer()
    {
        // if active Manufacturer is not set yet - trying to load it from request params
        // this may be useful when category component was unable to load active Manufacturer
        // and we still need some object to mount navigation info
        if ($this->_oActManufacturer === null) {
            $this->_oActManufacturer = false;
            $manufacturerId = \OxidEsales\Eshop\Core\Registry::getConfig()->getRequestParameter('mnid');
            $manufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
            if ($manufacturer->load($manufacturerId)) {
                $this->_oActManufacturer = $manufacturer;
            }
        }

        return $this->_oActManufacturer;
    }
public function getActManufacturer ( ) { // if active Manufacturer is not set yet - trying to load it from request params // this may be useful when category component was unable to load active Manufacturer // and we still need some object to mount navigation info if ( $ this -> _oActManufacturer === null ) { $ this -> _oActManufacturer = false ; $ manufacturerId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getRequestParameter ( 'mnid' ) ; $ manufacturer = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Manufacturer :: class ) ; if ( $ manufacturer -> load ( $ manufacturerId ) ) { $ this -> _oActManufacturer = $ manufacturer ; } } return $ this -> _oActManufacturer ; }
Returns active Manufacturer set by categories component; if Manufacturer is
not set by component - will create Manufacturer object and will try to
load by id passed by request

@return \OxidEsales\Eshop\Application\Model\Manufacturer
Returns active Manufacturer set by categories component ; if Manufacturer is not set by component - will create Manufacturer object and will try to load by id passed by request