ExternalTracker::getTypeSort

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. ExternalTracker
  4. getTypeSort
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/channel/externaltracker.php
  • Класс: Bitrix\Crm\Integration\Channel\ExternalTracker
  • Вызов: ExternalTracker::getTypeSort
static function getTypeSort($typeID)
{
	if(!is_numeric($typeID))
	{
		return false;
	}

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

	$result = array_search($typeID, self::getSupportedTypeIDs(), true);
	return $result !== false ? $result : -1;
}

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