CCrmOwnerTypeAbbr::extractTypeIdFromSuspendedDynamicTypeAbbreviation

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

	return null;
}

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