Notification::toAllAuthors

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Notification
  4. toAllAuthors
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/im/notification.php
  • Класс: Bitrix\Sender\Integration\Im\Notification
  • Вызов: Notification::toAllAuthors
public function toAllAuthors()
{
	$list = Entity\Letter::getList(array(
		'select' => array('CREATED_BY'),
		'filter' => array(
			'=MESSAGE_CODE',
			'!=CREATED_BY' => null
		),
		'group' => array('CREATED_BY'),
		'cache' => array('ttl' => 3600),
	));
	foreach ($list as $item)
	{
		$this->addTo($item['CREATED_BY']);
	}

	return $this;
}

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