kernel/classes/ezvatmanager.php
File containing the eZVATManager class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZVATManager
Package: kernel
Parameters
Parameters
Parameters
File containing the eZVATManager class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Methods


getUserCountry(
$user
=
false, $considerPreferedCountry
=
true
)
:
void
static
Determine user's country.
\public \static
Name | Type | Description |
---|---|---|
$user | ||
$considerPreferedCountry |


getUserCountryAttributeName(
$requireUserCountry
)
:
void
static
Determine name of content attribute that contains user's country.
\private \static
Name | Type | Description |
---|---|---|
$requireUserCountry |


getVAT(
$object, $country
)
:
void
static
Get percentage of VAT type corresponding to the given product and country the user is from.
\return Percentage, or null on error. \public \static
Name | Type | Description |
---|---|---|
$object | ||
$country |