• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/tracking/pool.php
  • Класс: Bitrix\Crm\Tracking\Pool
  • Вызов: Pool::getUsingByValue
public function getUsingByValue($typeId, $value)
{
	switch ($typeId)
	{
		case Communication\Type::EMAIL:
			return [];

		case Communication\Type::PHONE:
			return Internals\PhoneNumberTable::getUsingByNumber($value);

		default:
			throw new ArgumentException("Unknown type `$typeId`.");
	}
}