|
eZ Publish
[trunk]
|
The class eZVATManager does. More...
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 () |
The class eZVATManager does.
Definition at line 17 of file ezvatmanager.php.
| static eZVATManager::getUserCountry | ( | $ | user = false, |
| $ | considerPreferedCountry = true |
||
| ) | [static] |
Determine user's country.
Definition at line 112 of file ezvatmanager.php.
Referenced by getVAT(), and eZShopOperationCollection\handleUserCountry().
| static eZVATManager::getUserCountryAttributeName | ( | $ | requireUserCountry | ) | [static, private] |
Determine name of content attribute that contains user's country.
Definition at line 76 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.
Definition at line 26 of file ezvatmanager.php.
Referenced by eZVatType\getPercentage().
| static eZVATManager::isDynamicVatChargingEnabled | ( | ) | [static] |
Definition at line 255 of file ezvatmanager.php.
Referenced by eZVatType\fetch(), eZVatType\fetchList(), and eZShopOperationCollection\handleUserCountry().
| static eZVATManager::isUserCountryRequired | ( | ) | [static] |
Check if users must have country specified.
Definition at line 60 of file ezvatmanager.php.
Referenced by getUserCountry(), getVAT(), eZShopOperationCollection\handleUserCountry(), and setUserCountry().
| static eZVATManager::loadVATHandler | ( | ) | [static, private] |
Load VAT handler (if specified).
Definition at line 274 of file ezvatmanager.php.
Referenced by getVAT(), and isDynamicVatChargingEnabled().
| static eZVATManager::setUserCountry | ( | $ | user, |
| $ | country | ||
| ) | [static] |
Set user's country.
Definition at line 210 of file ezvatmanager.php.
Referenced by eZShopOperationCollection\handleUserCountry().