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

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 Private Attributes

static $_aUserVatCache = array()

Member Function Documentation

oxVatSelector.getUserVat ( oxUser oUser,
blCacheReset = false 
)

get VAT for user, can NOT be null

Exceptions:
oxObjectException 
Parameters:
oxUser $oUser
bool $blCacheReset
Returns:
double | false

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

get vat for user of a foreign country

Parameters:
oxUser $oUser
oxCountry $oCountry
Returns:
unknown

oxVatSelector._getVatForArticleCategory ( oxArticle $  oArticle  )  [protected]

return Vat value for oxcategory type assignment only

Exceptions:
oxObjectException 
Parameters:
oxArticle $oArticle
Returns:
float | false

oxVatSelector.getArticleVat ( oxArticle $  oArticle  ) 

get VAT for given article, can NOT be null

Exceptions:
oxObjectException 
Parameters:
oxArticle $oArticle
Returns:
double

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


Member Data Documentation

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


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

Generated on Wed Oct 29 23:46:39 2008 for OXID eShop CE by  doxygen 1.5.5