CCrmOwnerTypeAbbr::isDynamicTypeAbbreviation

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmOwnerTypeAbbr
  4. isDynamicTypeAbbreviation
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_owner_type.php
  • Класс: \CCrmOwnerTypeAbbr
  • Вызов: CCrmOwnerTypeAbbr::isDynamicTypeAbbreviation
static function isDynamicTypeAbbreviation(string $abbr): bool
{
	$isMatchesPrefix = (mb_strpos($abbr, self::DynamicTypeAbbreviationPrefix) !== false);

	$typeId = self::extractTypeIdFromDynamicTypeAbbreviation($abbr);
	$isTypeIdValid = !is_null($typeId);

	return ($isMatchesPrefix && $isTypeIdValid);
}

Добавить комментарий