Bitrix API

MultifieldComparer extends ComparerBase

FinalYes

Table of Contents

Methods

areEquals()  : bool
areFieldsEquals()  : bool
compare()  : Difference
Compare two associative arrays and return object that represents a difference between them
compareEntityFields()  : Difference
Compare fields of a CRM entity and return object that represents a difference between them Since this method is intended to be specifically used on fields of CRM entities, some special and sometimes strange comparisons are performed.
getChangedCompatibleArray()  : array<string|int, mixed>
getStageSemantics()  : string|null
isClosed()  : bool|null
isMovedToFailStage()  : bool
isMovedToFinalStage()  : bool
isMovedToSuccessfulStage()  : bool

Methods

areEquals()

public areEquals(array<string|int, mixed> $a, array<string|int, mixed> $b) : bool
Parameters
$a : array<string|int, mixed>
$b : array<string|int, mixed>
Return values
bool

areFieldsEquals()

public static areFieldsEquals(array<string|int, mixed> $left, array<string|int, mixed> $right, mixed $name) : bool
Parameters
$left : array<string|int, mixed>
$right : array<string|int, mixed>
$name : mixed
Return values
bool

compare()

Compare two associative arrays and return object that represents a difference between them

public static compare(array<string|int, mixed> $previousValues, array<string|int, mixed> $currentValues) : Difference
Parameters
$previousValues : array<string|int, mixed>
$currentValues : array<string|int, mixed>
Return values
Difference

compareEntityFields()

Compare fields of a CRM entity and return object that represents a difference between them Since this method is intended to be specifically used on fields of CRM entities, some special and sometimes strange comparisons are performed.

public static compareEntityFields(array<string|int, mixed> $previousValues, array<string|int, mixed> $currentValues) : Difference
Parameters
$previousValues : array<string|int, mixed>
$currentValues : array<string|int, mixed>
Return values
Difference

getStageSemantics()

public static getStageSemantics(int $entityTypeId, string $stageId) : string|null
Parameters
$entityTypeId : int
$stageId : string
Return values
string|null

isClosed()

public static isClosed(ItemIdentifier $identifier[, bool $defaultFlag = null ]) : bool|null
Parameters
$identifier : ItemIdentifier
$defaultFlag : bool = null
Return values
bool|null

isMovedToFailStage()

public static isMovedToFailStage(int $entityTypeId, string $previousStageId, string $currentStageId) : bool
Parameters
$entityTypeId : int
$previousStageId : string
$currentStageId : string
Return values
bool

isMovedToFinalStage()

public static isMovedToFinalStage(int $entityTypeId, string $previousStageId, string $currentStageId) : bool
Parameters
$entityTypeId : int
$previousStageId : string
$currentStageId : string
Return values
bool

isMovedToSuccessfulStage()

public static isMovedToSuccessfulStage(int $entityTypeId, string $previousStageId, string $currentStageId) : bool
Parameters
$entityTypeId : int
$previousStageId : string
$currentStageId : string
Return values
bool

        
On this page

Search results