Метод crmEntityExists
Сигнатура метода
private function crmEntityExists(int $entityTypeId, int $entityId): bool
Возвращает:
bool
Описание
Autosave hits this on every keystroke batch, so existence stays a single lightweight SELECT. The factory is kept as the supported-type gate and as the only source of the entity data class: dynamic types resolve their class at runtime, so the table must never be guessed from the type. The query must not filter by permissions: the update verdict belongs to CCrmActivity, which is the gate the rest of the activity code shares, and a filtered query would answer a different question.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityTypeId
|
int
|
—
|
—
|
$entityId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/controller/mail/draft.php
Расположение метода в файле
Строки
176–197