src/ShopBundle/objects/WebModules/MTShopManufacturerArticleCatalogCore/MTShopManufacturerArticleCatalogCore.class.php
protected function LoadManufacturer()
    {
        if (is_null($this->oActiveManufacturer) && !is_null($this->iActiveManufacturerId)) {
            $this->oActiveManufacturer = TdbShopManufacturer::GetNewInstance();
            if (!$this->oActiveManufacturer->Load($this->iActiveManufacturerId)) {
                $this->oActiveManufacturer = null;
                // unable to find manufacturer - redirect to not found page
                $this->getRedirect()->redirect($this->getPortalDomainService()->getActivePortal()->GetFieldPageNotFoundNodePageURL());
            }
        }
    }
protected function LoadManufacturer()
    {
        if (is_null($this->oActiveManufacturer) && !is_null($this->iActiveManufacturerId)) {
            $this->oActiveManufacturer = TdbShopManufacturer::GetNewInstance();
            if (!$this->oActiveManufacturer->Load($this->iActiveManufacturerId)) {
                $this->oActiveManufacturer = null;
                // unable to find manufacturer - redirect to not found page
                $this->getRedirect()->redirect($this->getPortalDomainService()->getActivePortal()->GetFieldPageNotFoundNodePageURL());
            }
        }
    }
protected function LoadManufacturer ( ) { if ( is_null ( $ this -> oActiveManufacturer ) && ! is_null ( $ this -> iActiveManufacturerId ) ) { $ this -> oActiveManufacturer = TdbShopManufacturer :: GetNewInstance ( ) ; if ( ! $ this -> oActiveManufacturer -> Load ( $ this -> iActiveManufacturerId ) ) { $ this -> oActiveManufacturer = null ; // unable to find manufacturer - redirect to not found page $ this -> getRedirect ( ) -> redirect ( $ this -> getPortalDomainService ( ) -> getActivePortal ( ) -> GetFieldPageNotFoundNodePageURL ( ) ) ; } } }
load manufacturer and related data.
load manufacturer and related data .