src/Subjects/AbstractCategorySubject.php
public function getStoreWebsiteIdByCode($code)
    {

        // query whether or not, the requested store website is available
        if (isset($this->storeWebsites[$code])) {
            return (integer) $this->storeWebsites[$code][MemberNames::WEBSITE_ID];
        }

        // throw an exception, if not
        throw new \Exception(sprintf('Found invalid website code "%s"', $code));
    }
public function getStoreWebsiteIdByCode($code)
    {

        // query whether or not, the requested store website is available
        if (isset($this->storeWebsites[$code])) {
            return (integer) $this->storeWebsites[$code][MemberNames::WEBSITE_ID];
        }

        // throw an exception, if not
        throw new \Exception(sprintf('Found invalid website code "%s"', $code));
    }
public function getStoreWebsiteIdByCode ( $ code ) { // query whether or not, the requested store website is available if ( isset ( $ this -> storeWebsites [ $ code ] ) ) { return ( integer ) $ this -> storeWebsites [ $ code ] [ MemberNames :: WEBSITE_ID ] ; } // throw an exception, if not throw new \ Exception ( sprintf ( 'Found invalid website code "%s"' , $ code ) ) ; }
Return's the store website for the passed code.

@param string $code The code of the store website to return the ID for

@return integer The store website ID
@throws \Exception Is thrown, if the store website with the requested code is not available
Return s the store website for the passed code .