BasketComponentHelper
Table of Contents
Properties
- $cacheRatio : array<string|int, mixed>
- $cacheRatioData : array<string|int, mixed>
Methods
- checkQuantityRatio() : Result
- clearFUserBasketPrice() : mixed
- clearFUserBasketQuantity() : mixed
- correctQuantityRatio() : Result
- existsFUserBasketPrice() : bool
- Returns true, if the fuser basket summary price has bedd already calculated.
- existsFUserBasketQuantity() : bool
- Returns true, if the fuser basket summary quantity has already been calculated.
- getFUserBasketPrice() : int|float
- getFUserBasketQuantity() : int|float
- getRatio() : Result
- onSaleBasketItemDeleted() : EventResult
- onSaleBasketItemEntitySaved() : EventResult
- setFUserBasketPrice() : void
- setFUserBasketQuantity() : void
- updateFUserBasket() : void
- updateFUserBasketPrice() : void
- updateFUserBasketQuantity() : void
Properties
$cacheRatio
public
static array<string|int, mixed>
$cacheRatio
= []
$cacheRatioData
public
static array<string|int, mixed>
$cacheRatioData
= []
Methods
checkQuantityRatio()
public
static checkQuantityRatio(Basket $basket[, BasketItem|null $item = null ]) : Result
Parameters
- $basket : Basket
- $item : BasketItem|null = null
Tags
Return values
ResultclearFUserBasketPrice()
public
static clearFUserBasketPrice(mixed $fuserId[, null $siteId = null ]) : mixed
Parameters
- $fuserId : mixed
- $siteId : null = null
clearFUserBasketQuantity()
public
static clearFUserBasketQuantity(mixed $fuserId[, null $siteId = null ]) : mixed
Parameters
- $fuserId : mixed
- $siteId : null = null
correctQuantityRatio()
public
static correctQuantityRatio(Basket $basket[, BasketItem|null $item = null ]) : Result
Parameters
- $basket : Basket
- $item : BasketItem|null = null
Tags
Return values
ResultexistsFUserBasketPrice()
Returns true, if the fuser basket summary price has bedd already calculated.
public
static existsFUserBasketPrice(int|null $fuserId[, string|null $siteId = null ]) : bool
Parameters
- $fuserId : int|null
- $siteId : string|null = null
Return values
boolexistsFUserBasketQuantity()
Returns true, if the fuser basket summary quantity has already been calculated.
public
static existsFUserBasketQuantity(int|null $fuserId[, string|null $siteId = null ]) : bool
Parameters
- $fuserId : int|null
- $siteId : string|null = null
Return values
boolgetFUserBasketPrice()
public
static getFUserBasketPrice(null|int $fuserId[, string|null $siteId = null ]) : int|float
Parameters
- $fuserId : null|int
- $siteId : string|null = null
Return values
int|floatgetFUserBasketQuantity()
public
static getFUserBasketQuantity(null|int $fuserId[, string|null $siteId = null ]) : int|float
Parameters
- $fuserId : null|int
- $siteId : string|null = null
Return values
int|floatgetRatio()
public
static getRatio(Basket $basket[, BasketItem|null $item = null ]) : Result
Parameters
- $basket : Basket
- $item : BasketItem|null = null
Tags
Return values
ResultonSaleBasketItemDeleted()
public
static onSaleBasketItemDeleted(Event $event) : EventResult
Parameters
- $event : Event
Return values
EventResultonSaleBasketItemEntitySaved()
public
static onSaleBasketItemEntitySaved(Event $event) : EventResult
Parameters
- $event : Event
Return values
EventResultsetFUserBasketPrice()
public
static setFUserBasketPrice(int $fuserId, int|float $price[, string|null $siteId = null ]) : void
Parameters
- $fuserId : int
- $price : int|float
- $siteId : string|null = null
setFUserBasketQuantity()
public
static setFUserBasketQuantity(int $fuserId, int|float $quantity[, string|null $siteId = null ]) : void
Parameters
- $fuserId : int
- $quantity : int|float
- $siteId : string|null = null
updateFUserBasket()
public
static updateFUserBasket(int $fuserId[, string|null $siteId = null ]) : void
Parameters
- $fuserId : int
- $siteId : string|null = null
updateFUserBasketPrice()
public
static updateFUserBasketPrice(int $fuserId[, string|null $siteId = null ][, array<string|int, mixed>|null $basketList = null ]) : void
Parameters
- $fuserId : int
- $siteId : string|null = null
- $basketList : array<string|int, mixed>|null = null
updateFUserBasketQuantity()
public
static updateFUserBasketQuantity(int $fuserId[, string|null $siteId = null ][, array<string|int, mixed>|null $basketList = null ]) : void
Parameters
- $fuserId : int
- $siteId : string|null = null
- $basketList : array<string|int, mixed>|null = null