src/ShopBundle/objects/db/TShopPaymentMethod.class.php
protected function checkUserShippingCountry(TdbDataExtranetUser $oUser)
    {
        $bIsValidShippingCountry = false;
        $aShippingCountryRestriction = $this->getPaymentMethodDataAccess()->getShippingCountryIds($this->id);
        if (count($aShippingCountryRestriction) > 0) {
            $oShippingAddress = $oUser->GetShippingAddress();
            if (in_array($oShippingAddress->fieldDataCountryId, $aShippingCountryRestriction)) {
                $bIsValidShippingCountry = true;
            }
        } else {
            $bIsValidShippingCountry = true;
        }

        return $bIsValidShippingCountry;
    }
protected function checkUserShippingCountry(TdbDataExtranetUser $oUser)
    {
        $bIsValidShippingCountry = false;
        $aShippingCountryRestriction = $this->getPaymentMethodDataAccess()->getShippingCountryIds($this->id);
        if (count($aShippingCountryRestriction) > 0) {
            $oShippingAddress = $oUser->GetShippingAddress();
            if (in_array($oShippingAddress->fieldDataCountryId, $aShippingCountryRestriction)) {
                $bIsValidShippingCountry = true;
            }
        } else {
            $bIsValidShippingCountry = true;
        }

        return $bIsValidShippingCountry;
    }
protected function checkUserShippingCountry ( TdbDataExtranetUser $ oUser ) { $ bIsValidShippingCountry = false ; $ aShippingCountryRestriction = $ this -> getPaymentMethodDataAccess ( ) -> getShippingCountryIds ( $ this -> id ) ; if ( count ( $ aShippingCountryRestriction ) > 0 ) { $ oShippingAddress = $ oUser -> GetShippingAddress ( ) ; if ( in_array ( $ oShippingAddress -> fieldDataCountryId , $ aShippingCountryRestriction ) ) { $ bIsValidShippingCountry = true ; } } else { $ bIsValidShippingCountry = true ; } return $ bIsValidShippingCountry ; }
check shipping country.

@param TdbDataExtranetUser $oUser

@return bool
check shipping country .