EntityCounterType::resolveID

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. EntityCounterType
  4. resolveID
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycountertype.php
  • Класс: Bitrix\Crm\Counter\EntityCounterType
  • Вызов: EntityCounterType::resolveID
static function resolveID($typeName)
{
	if(!is_string($typeName))
	{
		return self::UNDEFINED;
	}

	$typeName = mb_strtoupper($typeName);
	if($typeName === self::IDLE_NAME)
	{
		return self::IDLE;
	}
	elseif($typeName === self::PENDING_NAME)
	{
		return self::PENDING;
	}
	elseif($typeName === self::OVERDUE_NAME)
	{
		return self::OVERDUE;
	}
	elseif($typeName === self::INCOMING_CHANNEL_NAME)
	{
		return self::INCOMING_CHANNEL;
	}
	elseif($typeName === self::CURRENT_NAME)
	{
		return self::CURRENT;
	}
	elseif($typeName === self::ALL_DEADLINE_BASED_NAME)
	{
		return self::ALL_DEADLINE_BASED;
	}
	elseif($typeName === self::ALL_NAME)
	{
		return self::ALL;
	}
	return self::UNDEFINED;
}

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