Метод assertLimitNotReached

private

Сигнатура метода

private function assertLimitNotReached(): void

Возвращает: void

Описание

The limit is asked about only where the number of working forms actually grows, and only on a portal that has a plan to be limited by: outside the cloud forms are turned on without a count, the way the product turns them on ({@see \Bitrix\Crm\WebForm\Form::canActivateForm()}). The window between the count and the write is accepted: there is no transaction under this path, so calls overlapping in it all read the count before any of them writes and all pass: the number of working forms ends up above the limit by one less than the number of such calls.

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/WebForm/FormActivator.php
Расположение метода в файле
Строки 246–257

Исходный код

PHP