src/ShopBundle/objects/db/TShopShippingType.class.php
public function isValidForCurrentPortal()
    {
        $aPortalIdList = $this->getShopShippingTypeDataAccess()->getPermittedPortalIds($this->id);
        if (!is_array($aPortalIdList) || count($aPortalIdList) < 1) {
            $bIsValidForPortal = true;
        } else {
            $oActivePortal = $this->getPortalDomainService()->getActivePortal();
            if (null === $oActivePortal) {
                $bIsValidForPortal = false;
            } else {
                $bIsValidForPortal = in_array($oActivePortal->id, $aPortalIdList);
            }
        }

        return $bIsValidForPortal;
    }
public function isValidForCurrentPortal()
    {
        $aPortalIdList = $this->getShopShippingTypeDataAccess()->getPermittedPortalIds($this->id);
        if (!is_array($aPortalIdList) || count($aPortalIdList) < 1) {
            $bIsValidForPortal = true;
        } else {
            $oActivePortal = $this->getPortalDomainService()->getActivePortal();
            if (null === $oActivePortal) {
                $bIsValidForPortal = false;
            } else {
                $bIsValidForPortal = in_array($oActivePortal->id, $aPortalIdList);
            }
        }

        return $bIsValidForPortal;
    }
public function isValidForCurrentPortal ( ) { $ aPortalIdList = $ this -> getShopShippingTypeDataAccess ( ) -> getPermittedPortalIds ( $ this -> id ) ; if ( ! is_array ( $ aPortalIdList ) || count ( $ aPortalIdList ) < 1 ) { $ bIsValidForPortal = true ; } else { $ oActivePortal = $ this -> getPortalDomainService ( ) -> getActivePortal ( ) ; if ( null === $ oActivePortal ) { $ bIsValidForPortal = false ; } else { $ bIsValidForPortal = in_array ( $ oActivePortal -> id , $ aPortalIdList ) ; } } return $ bIsValidForPortal ; }
return true if the shipping group is allowed for the current portal.
If no active portal was found and group was restricted to portal return false.

@return bool
return true if the shipping group is allowed for the current portal . If no active portal was found and group was restricted to portal return false .