Public Member Functions | |
__construct () | |
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) | |
hasSkipDiscountCategories () | |
Protected Member Functions | |
_getList ($oUser=null) | |
_getFilterSelect ($oUser) | |
Protected Attributes | |
$_sUserId = null | |
$_blReload = true | |
$_hasSkipDiscountCategories = null |
Discount list manager. Organizes list of discount objects.
Definition at line 8 of file oxdiscountlist.php.
oxDiscountList.__construct | ( | ) |
oxDiscountList._getFilterSelect | ( | $ | oUser | ) | [protected] |
Creates discount list filter SQL to load current state discount list
object | $oUser user object |
Definition at line 103 of file oxdiscountlist.php.
oxDiscountList._getList | ( | $ | oUser = null |
) | [protected] |
Initializes current state discount list For iterating through the list, use getArray() on the list, as iterating on object itself can cause concurrency problems.
object | $oUser user object (optional) |
Definition at line 52 of file oxdiscountlist.php.
oxDiscountList.forceReload | ( | ) |
Used to force discount list reload
Definition at line 91 of file oxdiscountlist.php.
oxDiscountList.getArticleDiscounts | ( | $ | oArticle, | |
$ | oUser = null | |||
) |
Returns array of discounts that can be globally (transparently) applied
object | $oArticle article object | |
object | $oUser oxuser object (optional) |
Definition at line 165 of file oxdiscountlist.php.
oxDiscountList.getBasketBundleDiscounts | ( | $ | oBasket, | |
$ | oUser = null | |||
) |
Returns array of basket bundle discounts
oxbasket | $oBasket oxbasket object | |
oxuser | $oUser oxuser object (optional) |
Definition at line 251 of file oxdiscountlist.php.
oxDiscountList.getBasketDiscounts | ( | $ | oBasket, | |
$ | oUser = null | |||
) |
Returns array of discounts that can be applied for whole basket
object | $oBasket basket | |
object | $oUser user object (optional) |
Definition at line 208 of file oxdiscountlist.php.
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) |
Definition at line 230 of file oxdiscountlist.php.
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) |
Definition at line 187 of file oxdiscountlist.php.
oxDiscountList.getCountryId | ( | $ | oUser | ) |
Returns user country id for for discount selection
oxuser | $oUser oxuser object |
Definition at line 78 of file oxdiscountlist.php.
oxDiscountList.hasSkipDiscountCategories | ( | ) |
Checks if any category has "skip discounts" status
Definition at line 269 of file oxdiscountlist.php.
oxDiscountList.$_blReload = true [protected] |
Definition at line 23 of file oxdiscountlist.php.
oxDiscountList.$_hasSkipDiscountCategories = null [protected] |
Definition at line 31 of file oxdiscountlist.php.
oxDiscountList.$_sUserId = null [protected] |
Definition at line 16 of file oxdiscountlist.php.