UserAuth::getRecipient

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. UserAuth
  4. getRecipient
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/main/triggers/userauth.php
  • Класс: Bitrix\Sender\Integration\Main\Triggers\UserAuth
  • Вызов: UserAuth::getRecipient
public function getRecipient()
{
	$eventData = $this->getParam('EVENT');

	if(empty($eventData[0]['user_fields']))
		return null;

	return array(
		'EMAIL' => $eventData[0]['user_fields']['EMAIL'],
		'USER_ID' => $eventData[0]['user_fields']['ID'],
		'NAME' => $eventData[0]['user_fields']['NAME'],
	);
}

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