kernel/classes/ezvatmanager.php

Show: inherited
Table of Contents

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

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

methodpublicgetUserCountry(  $user = false,  $considerPreferedCountry = true ) : void
static

Determine user's country.

\public \static

Parameters
Name Type Description
$user
$considerPreferedCountry
methodpublicgetUserCountryAttributeName(  $requireUserCountry ) : void
static

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

\private \static

Parameters
Name Type Description
$requireUserCountry
methodpublicgetVAT(  $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

Parameters
Name Type Description
$object
$country
methodpublicisDynamicVatChargingEnabled( ) : void
static

methodpublicisUserCountryRequired( ) : void
static

Check if users must have country specified.

\public \static

methodpublicloadVATHandler( ) : void
static

methodpublicsetUserCountry(  $user,  $country ) : void
static

Set user's country.

\public \static

Parameters
Name Type Description
$user
$country
Documentation was generated by DocBlox 0.18.1.