eZ Publish  [4.2]
eZVATManager Class Reference

The class eZVATManager does. More...

List of all members.

Static Public Member Functions

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

Static Private Member Functions

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

Detailed Description

The class eZVATManager does.

Definition at line 40 of file ezvatmanager.php.


Member Function Documentation

static eZVATManager::getUserCountry ( user = false,
considerPreferedCountry = true 
) [static]

Determine user's country.

Definition at line 135 of file ezvatmanager.php.

Referenced by getVAT().

static eZVATManager::getUserCountryAttributeName ( requireUserCountry) [static, private]

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

Definition at line 99 of file ezvatmanager.php.

Referenced by getUserCountry(), and setUserCountry().

static 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.

Definition at line 49 of file ezvatmanager.php.

Referenced by eZVatType\getPercentage().

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

Definition at line 278 of file ezvatmanager.php.

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

static eZVATManager::isUserCountryRequired ( ) [static]

Check if users must have country specified.

Definition at line 83 of file ezvatmanager.php.

Referenced by getUserCountry(), getVAT(), and setUserCountry().

static eZVATManager::loadVATHandler ( ) [static, private]

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.

Definition at line 297 of file ezvatmanager.php.

Referenced by getVAT(), and isDynamicVatChargingEnabled().

static eZVATManager::setUserCountry ( user,
country 
) [static]

Set user's country.

Definition at line 233 of file ezvatmanager.php.


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