Bitrix API

EntityProductConverter implements ProductConverter

Converter without reserve info.

Table of Contents

Interfaces

ProductConverter
Product fields converter `sale` to `crm` or vice versa.

Methods

__construct()  : mixed
convertToCrmProductRowFormat()  : array<string|int, mixed>
Convert `b_sale_basket` table values to `b_crm_product_row`.
convertToSaleBasketFormat()  : array<string|int, mixed>
Convert `b_crm_product_row` table values to `b_sale_basket`.
setBasketItem()  : void

Methods

__construct()

public __construct() : mixed
Tags
throws
Exception

if not installed 'sale' module.

convertToCrmProductRowFormat()

Convert `b_sale_basket` table values to `b_crm_product_row`.

public convertToCrmProductRowFormat(array<string|int, mixed> $basketItem) : array<string|int, mixed>
Parameters
$basketItem : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

convertToSaleBasketFormat()

Convert `b_crm_product_row` table values to `b_sale_basket`.

public convertToSaleBasketFormat(array<string|int, mixed> $product) : array<string|int, mixed>
Parameters
$product : array<string|int, mixed>
Tags
inheritDoc
Return values
array<string|int, mixed>

        
On this page

Search results