• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/calendar/helper.php
  • Класс: Bitrix\Crm\Integration\Calendar\Helper
  • Вызов: Helper::getContactPhoneCommunications
public function getContactPhoneCommunications(int $entityId, int $entityTypeId, int $contactId, int $contactTypeId)
{
	$communications = SmsManager::getEntityPhoneCommunications($entityTypeId, $entityId);
	$contact = current(array_filter($communications, static function ($communication) use ($contactId, $contactTypeId) {
		return $communication['entityId'] === $contactId && $communication['entityTypeId'] === $contactTypeId;
	}));

	if (!$contact)
	{
		return null;
	}

	return $contact;
}