UnSubscribers::getData

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. UnSubscribers
  4. getData
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/sender/connectors/unsubscribers.php
  • Класс: Bitrix\Sender\Integration\Sender\Connectors\UnSubscribers
  • Вызов: UnSubscribers::getData
public function getData()
{
	$mailingId = $this->getFieldValue('MAILING_ID', 0);
	$filter = array();
	if($mailingId)
	{
		$filter['=MAILING_ID'] = $mailingId;
	}
	$mailingDb = MailingSubscriptionTable::getUnSubscriptionList(array(
		'select' => array(
			'SENDER_CONTACT_ID' => 'CONTACT.ID',
			'EMAIL' => 'CONTACT.CODE'
		),
		'filter' => $filter,
		'group' => array('CONTACT.CODE'),
	));

	return $mailingDb;
}

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