EventHandler::getEntitySelectorByRecipient

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. EventHandler
  4. getEntitySelectorByRecipient
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/eventhandler.php
  • Класс: Bitrix\Sender\Integration\Crm\EventHandler
  • Вызов: EventHandler::getEntitySelectorByRecipient
static function getEntitySelectorByRecipient($recipientTypeId, $recipientCode)
{
	$selector = self::getEntitySelector();

	switch ($recipientTypeId)
	{
		case Recipient\Type::EMAIL:
			$selector->appendEmailCriterion($recipientCode);
			break;

		case Recipient\Type::PHONE:
			$selector->appendPhoneCriterion($recipientCode);
			break;

		default:
			return null;
	}

	return $selector;
}

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