BasketService
Service for working with basket items.
Table of Contents
Methods
- __construct() : mixed
- getInstance() : self
- Service instance.
- getRowIdsToBasketIdsByEntity() : array<string|int, mixed>
- Get relations sale basket items and crm product rows.
- getRowIdsToBasketIdsByRows() : array<string|int, mixed>
- Get relations sale basket items and crm product rows.
Methods
__construct()
public
__construct() : mixed
getInstance()
Service instance.
public
static getInstance() : self
Return values
selfgetRowIdsToBasketIdsByEntity()
Get relations sale basket items and crm product rows.
public
getRowIdsToBasketIdsByEntity(int $ownerTypeId, int $ownerId) : array<string|int, mixed>
Parameters
- $ownerTypeId : int
- $ownerId : int
Return values
array<string|int, mixed> —in format ['rowId' => 'basketId']
getRowIdsToBasketIdsByRows()
Get relations sale basket items and crm product rows.
public
getRowIdsToBasketIdsByRows(array<string|int, mixed> $rowsIds) : array<string|int, mixed>
Parameters
- $rowsIds : array<string|int, mixed>
Return values
array<string|int, mixed> —in format ['rowId' => 'basketId']