Bitrix API

Product

Table of Contents

Methods

buildPreview()  : string
Returns HTML code for preview of the product entity.
checkUserReadAccess()  : bool
Checks for current user's read access to the product.

Methods

buildPreview()

Returns HTML code for preview of the product entity.

public static buildPreview(array<string|int, mixed> $parameters) : string
Parameters
$parameters : array<string|int, mixed>

Parameters that will be passed to the component.

Return values
string

HTML code of the preview.

checkUserReadAccess()

Checks for current user's read access to the product.

public static checkUserReadAccess(array<string|int, mixed> $parameters) : bool
Parameters
$parameters : array<string|int, mixed>

Allowed key: productId.

Return values
bool

True if current user has access to the product.


        
On this page

Search results