Метод isValid
Сигнатура метода
public static function isValid(int $entityTypeId): bool
Возвращает:
bool
Описание
Whether the given numeric type ID corresponds to a CRM Item entity that EntityType can wrap: a static Item entity (Lead, Deal, Contact, Company, Quote, SmartInvoice/Document/B2eDocument) or a smart process (SPA) ID in valid range. Prefer this over try/catch around `new EntityType(...)` / `EntityType::fromId(...)` when the caller has a non-fatal fallback path for "not an Item type".
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$entityTypeId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Public/EntityType.php
Расположение метода в файле
Строки
33–41