Метод assertLimitNotReached
Сигнатура метода
private function assertLimitNotReached(): void
Возвращает:
void
Описание
The limit is asked about the way turning a stored form on asks about it ({@see FormActivator::setActive()}), because it is the same growth of the number of working forms: the plan of the portal first, and the count against the maximum only on a portal that has a plan to be limited by. Outside the cloud a form is created working without a count, the way the product turns one on ({@see Form::canActivateForm()}). The window between the count and the write is accepted: there is no transaction under this path, so creations 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 creations.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/WebForm/FormWriter.php