kernel/classes/ezvatmanager.php
static function getVAT( $object, $country )
    {
        // Load VAT handler.
        if ( !is_object( $handler = eZVATManager::loadVATHandler() ) )
        {
            if ( $handler === true )
            {
                eZDebug::writeWarning( "No VAT handler specified but dynamic VAT charging is used." );
            }

            return null;
        }

        // Check if user country must be specified.
        $requireUserCountry = eZVATManager::isUserCountryRequired();

        // Determine user country if it's not specified
        if ( $country === false )
            $country = eZVATManager::getUserCountry();

        if ( !$country && $requireUserCountry )
        {
            eZDebug::writeNotice( "User country is not specified." );
        }

        return $handler->getVatPercent( $object, $country );
    }
static function getVAT( $object, $country )
    {
        // Load VAT handler.
        if ( !is_object( $handler = eZVATManager::loadVATHandler() ) )
        {
            if ( $handler === true )
            {
                eZDebug::writeWarning( "No VAT handler specified but dynamic VAT charging is used." );
            }

            return null;
        }

        // Check if user country must be specified.
        $requireUserCountry = eZVATManager::isUserCountryRequired();

        // Determine user country if it's not specified
        if ( $country === false )
            $country = eZVATManager::getUserCountry();

        if ( !$country && $requireUserCountry )
        {
            eZDebug::writeNotice( "User country is not specified." );
        }

        return $handler->getVatPercent( $object, $country );
    }
static function getVAT ( $ object , $ country ) { // Load VAT handler. if ( ! is_object ( $ handler = eZVATManager :: loadVATHandler ( ) ) ) { if ( $ handler === true ) { eZDebug :: writeWarning ( "No VAT handler specified but dynamic VAT charging is used." ) ; } return null ; } // Check if user country must be specified. $ requireUserCountry = eZVATManager :: isUserCountryRequired ( ) ; // Determine user country if it's not specified if ( $ country === false ) $ country = eZVATManager :: getUserCountry ( ) ; if ( ! $ country && $ requireUserCountry ) { eZDebug :: writeNotice ( "User country is not specified." ) ; } return $ handler -> getVatPercent ( $ object , $ country ) ; }
Get percentage of VAT type corresponding to the given product and country the user is from.

\return Percentage, or null on error.
\public
\static
Get percentage of VAT type corresponding to the given product and country the user is from .