oxVatSelector Class Reference

Inheritance diagram for oxVatSelector:

Inheritance graph
[legend]
Collaboration diagram for oxVatSelector:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class, responsible for retrieving correct vat for users and articles

Definition at line 7 of file oxvatselector.php.


Public Member Functions

 getUserVat (oxUser $oUser, $blCacheReset=false)
 getArticleVat (oxArticle $oArticle)
 getBasketItemVat (oxArticle $oArticle, $oBasket)

Protected Member Functions

 _getForeignCountryUserVat (oxUser $oUser, oxCountry $oCountry)
 _getVatForArticleCategory (oxArticle $oArticle)

Static Protected Attributes

static $_aUserVatCache = array()

Member Function Documentation

oxVatSelector.getUserVat ( oxUser oUser,
blCacheReset = false 
)

get VAT for user, can NOT be null

Parameters:
oxUser $oUser given user object
bool $blCacheReset reset cache
Exceptions:
oxObjectException if wrong country
Returns:
double | false

Definition at line 25 of file oxvatselector.php.

oxVatSelector._getForeignCountryUserVat ( oxUser oUser,
oxCountry oCountry 
) [protected]

get vat for user of a foreign country

Parameters:
oxUser $oUser given user object
oxCountry $oCountry given country object
Returns:
unknown

Definition at line 57 of file oxvatselector.php.

oxVatSelector._getVatForArticleCategory ( oxArticle oArticle  )  [protected]

return Vat value for oxcategory type assignment only

Parameters:
oxArticle $oArticle given article
Returns:
float | false

Definition at line 76 of file oxvatselector.php.

oxVatSelector.getArticleVat ( oxArticle oArticle  ) 

get VAT for given article, can NOT be null

Parameters:
oxArticle $oArticle given article
Returns:
double

Definition at line 122 of file oxvatselector.php.

oxVatSelector.getBasketItemVat ( oxArticle oArticle,
oBasket 
)

Currently returns vats percent that can be applied for basket item ( executes oxVatSelector.getArticleVat()). Can be used to override basket price calculation behaviour (oxarticle.getBasketPrice())

Parameters:
object $oArticle article object
object $oBasket oxbasket object
Returns:
double

Definition at line 150 of file oxvatselector.php.


Member Data Documentation

oxVatSelector.$_aUserVatCache = array() [static, protected]

Definition at line 14 of file oxvatselector.php.


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

Generated on Tue Apr 21 15:51:16 2009 for OXID eShop CE by  doxygen 1.5.5