CCrmOwnerTypeAbbr::extractTypeIdFromDynamicTypeAbbreviation

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmOwnerTypeAbbr
  4. extractTypeIdFromDynamicTypeAbbreviation
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_owner_type.php
  • Класс: \CCrmOwnerTypeAbbr
  • Вызов: CCrmOwnerTypeAbbr::extractTypeIdFromDynamicTypeAbbreviation
static function extractTypeIdFromDynamicTypeAbbreviation(string $abbr): ?int
{
	$typeId = mb_substr($abbr, mb_strlen(self::DynamicTypeAbbreviationPrefix));
	$typeIdNormalized = self::normalizeTypeIdFromAbbreviation($typeId);
	if (CCrmOwnerType::isPossibleDynamicTypeId($typeIdNormalized))
	{
		return $typeIdNormalized;
	}

	return null;
}

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