eZPublish  3.9
eZVATManager Class Reference

The class eZVATManager does. More...

Public Member Functions

 isDynamicVatChargingEnabled ()
 

Static Public Member Functions

 getUserCountry ($user=false, $considerPreferedCountry=true)
 Determine user's country. More...
 
 getVAT ($object, $country)
 Get percentage of VAT type corresponding to the given product and country the user is from. More...
 
 isUserCountryRequired ()
 Check if users must have country specified. More...
 
 setUserCountry ($user, $country)
 Set user's country. More...
 

Static Private Member Functions

 getUserCountryAttributeName ($requireUserCountry)
 Determine name of content attribute that contains user's country. More...
 
 loadVATHandler ()
 

Detailed Description

The class eZVATManager does.

Member Function Documentation

eZVATManager::getUserCountry (   $user = false,
  $considerPreferedCountry = true 
)
static
eZVATManager::getUserCountryAttributeName (   $requireUserCountry)
staticprivate

Determine name of content attribute that contains user's country.

Referenced by getUserCountry(), and setUserCountry().

eZVATManager::getVAT (   $object,
  $country 
)
static

Get percentage of VAT type corresponding to the given product and country the user is from.

Returns
Percentage, or null on error.

Referenced by eZVatType\getPercentage().

eZVATManager::isDynamicVatChargingEnabled ( )
Returns
true if a VAT handler is specified in the ini setting, false otherwise.

Referenced by eZVatType\fetch(), eZVatType\fetchList(), and eZShopOperationCollection\handleUserCountry().

eZVATManager::isUserCountryRequired ( )
static

Check if users must have country specified.

Referenced by getUserCountry(), getVAT(), eZShopOperationCollection\handleUserCountry(), and setUserCountry().

eZVATManager::loadVATHandler ( )
staticprivate

Load VAT handler (if specified).

Returns
true if no handler specified, false if a handler specified but could not be loaded, handler object if handler specified and found.

Referenced by getVAT(), and isDynamicVatChargingEnabled().

eZVATManager::setUserCountry (   $user,
  $country 
)
static

Set user's country.

Referenced by eZShopOperationCollection\handleUserCountry().


The documentation for this class was generated from the following file: