• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycountertype.php
  • Класс: Bitrix\Crm\Counter\EntityCounterType
  • Вызов: EntityCounterType::isDefined
static function isDefined($typeID)
{
	if(!is_numeric($typeID))
	{
		return false;
	}

	if(!is_int($typeID))
	{
		$typeID = (int)$typeID;
	}

	return
		$typeID === self::IDLE
		|| $typeID === self::PENDING
		|| $typeID === self::OVERDUE
		|| $typeID === self::CURRENT
		|| $typeID === self::INCOMING_CHANNEL
		|| $typeID === self::READY_TODO
		|| $typeID === self::ALL_DEADLINE_BASED
		|| $typeID === self::ALL
	;
}