Метод assertExpectedModifiedTime
Сигнатура метода
public function assertExpectedModifiedTime(int $formId, DateTime $expectedModifiedTime): void
Возвращает:
void
Описание
Refuses when the form no longer carries the version the caller expects, and moves no version of its own. Serves the write that writes nothing: an empty change set compares the version and stops there, and reserving the next one would move the version of a form nothing was written to. Every operation that does touch the row compares the version by reserving the next one instead - the write ({@see reserveNextModifiedTime()}) and the claim of a removal ({@see claimForRemoval()}): both are about to move the version anyway, and one statement leaves no window between the comparison and what follows it.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$formId
|
int
|
—
|
—
|
$expectedModifiedTime
|
DateTime
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/WebForm/FormWriteRepository.php