Bitrix API

Analyzer

FinalYes

Table of Contents

Methods

canCalculateSeparately()  : bool
Tells if this discount can calculate separately. It means it doesn't depends on basket and other discounts.
canCalculateSeparatelyAllDiscount()  : bool
Tells if allowed to calculate discount on basket separately.
getInstance()  : static
Returns Singleton of Analyzer
isContainGiftAction()  : bool
Returns true if the discount contains action with gift.

Methods

canCalculateSeparately()

Tells if this discount can calculate separately. It means it doesn't depends on basket and other discounts.

public canCalculateSeparately(array<string|int, mixed> $discount) : bool
Parameters
$discount : array<string|int, mixed>

Discount.

Return values
bool

canCalculateSeparatelyAllDiscount()

Tells if allowed to calculate discount on basket separately.

public canCalculateSeparatelyAllDiscount() : bool
Return values
bool

getInstance()

Returns Singleton of Analyzer

public static getInstance() : static
Return values
static

isContainGiftAction()

Returns true if the discount contains action with gift.

public isContainGiftAction(array<string|int, mixed> $discount) : bool
Parameters
$discount : array<string|int, mixed>

Discount.

Return values
bool

        
On this page

Search results