

Public Member Functions | |
| __construct ($sObjectsInListName= 'oxdiscount') | |
| getCountryId ($oUser) | |
| forceReload () | |
| getArticleDiscounts ($oArticle, $oUser=null) | |
| getBasketItemDiscounts ($oArticle, $oBasket, $oUser=null) | |
| getBasketDiscounts ($oBasket, $oUser=null) | |
| getBasketItemBundleDiscounts ($oArticle, $oBasket, $oUser=null) | |
| getBasketBundleDiscounts ($oBasket, $oUser=null) | |
Static Public Member Functions | |
| static | getInstance () |
Protected Member Functions | |
| _getList ($oUser=null) | |
| _getFilterSelect ($oUser) | |
Protected Attributes | |
| $_sUserId = null | |
| $_blReload = true | |
Static Protected Attributes | |
| static | $_instance = null |
| oxDiscountList.__construct | ( | $ | sObjectsInListName = 'oxdiscount' |
) |
Class Constructor
| string | $sObjectsInListName Associated list item object type |
Reimplemented from oxList.
| static oxDiscountList.getInstance | ( | ) | [static] |
| oxDiscountList._getList | ( | $ | oUser = null |
) | [protected] |
Initializes current state discount list
| object | $oUser user object (optional) |
| oxDiscountList.getCountryId | ( | $ | oUser | ) |
Returns user country id for for discount selection
| oxuser | $oUser oxuser object |
| oxDiscountList.forceReload | ( | ) |
Used to force discount list reload
| oxDiscountList._getFilterSelect | ( | $ | oUser | ) | [protected] |
Creates discount list filter SQL to load current state discount list
| object | $oUser user object |
| oxDiscountList.getArticleDiscounts | ( | $ | oArticle, | |
| $ | oUser = null | |||
| ) |
Returns array of discounts that can be globally (transparently) applied
| object | $oArticle article object | |
| object | $oUser oxuser object (optional) |
| oxDiscountList.getBasketItemDiscounts | ( | $ | oArticle, | |
| $ | oBasket, | |||
| $ | oUser = null | |||
| ) |
Returns array of discounts that can be applied for individual basket item
| mixed | $oArticle article object or article id (according to needs) | |
| object | $oBasket array of basket items containing article id, amount and price | |
| object | $oUser user object (optional) |
| oxDiscountList.getBasketDiscounts | ( | $ | oBasket, | |
| $ | oUser = null | |||
| ) |
Returns array of discounts that can be applied for whole basket
| object | $oBasket basket | |
| object | $oUser user object (optional) |
| oxDiscountList.getBasketItemBundleDiscounts | ( | $ | oArticle, | |
| $ | oBasket, | |||
| $ | oUser = null | |||
| ) |
Returns array of bundle discounts that can be applied for whole basket
| object | $oArticle article object | |
| object | $oBasket basket | |
| object | $oUser user object (optional) |
| oxDiscountList.getBasketBundleDiscounts | ( | $ | oBasket, | |
| $ | oUser = null | |||
| ) |
Returns array of basket bundle discounts
| oxbasket | $oBasket oxbasket object | |
| oxuser | $oUser oxuser object (optional) |
oxDiscountList.$_instance = null [static, protected] |
oxDiscountList.$_sUserId = null [protected] |
oxDiscountList.$_blReload = true [protected] |
1.5.5