Bitrix API

AccountNumberCompatibilityManager

Class AccountNumberCompatibilityManager

Table of Contents

Methods

onBuildNumeratorTemplateWordsList()  : array<string|int, mixed>
For compatibility - in the past users could add a custom type to the select list of number generation template Now if you want to add new template words and extend numerator functionality you should create your own generator (extending from NumberGenerator) and write your logic there
resetAccountNumberType()  : EventResult
updateAccountNumberType()  : EventResult
If numerator template is the same as it was in an old version of API we save account_number_template into b_option as if it was before for compatibility reasons

Methods

onBuildNumeratorTemplateWordsList()

For compatibility - in the past users could add a custom type to the select list of number generation template Now if you want to add new template words and extend numerator functionality you should create your own generator (extending from NumberGenerator) and write your logic there

public static onBuildNumeratorTemplateWordsList(Event $event) : array<string|int, mixed>
Parameters
$event : Event
Return values
array<string|int, mixed>

resetAccountNumberType()

public static resetAccountNumberType(Event $event) : EventResult
Parameters
$event : Event
Tags
throws
ArgumentOutOfRangeException
Return values
EventResult

updateAccountNumberType()

If numerator template is the same as it was in an old version of API we save account_number_template into b_option as if it was before for compatibility reasons

public static updateAccountNumberType(Event $event) : EventResult
Parameters
$event : Event
Tags
throws
ArgumentException
throws
ArgumentOutOfRangeException
Return values
EventResult

        
On this page

Search results