PullSender::send

  1. Bitrix24 API (v. 23.675.0)
  2. tasks
  3. PullSender
  4. send
  • Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/project/pull/pullsender.php
  • Класс: BitrixTasksInternalsProjectPullPullSender
  • Вызов: PullSender::send
static function send(array $pullMap, array $notVisibleGroupsUsers): void
{
	foreach ($pullMap as $command => $groupIds)
	{
		foreach ($groupIds as $groupId)
		{
			$groupKey = ($command === EventTypeDictionary::EVENT_PROJECT_USER_UPDATE ? 'GROUP_ID' : 'ID');
			$pushParams = [
				'module_id' => 'tasks',
				'command' => $command,
				'params' => [$groupKey => $groupId],
			];

			if (array_key_exists($groupId, $notVisibleGroupsUsers))
			{
				PushService::addEvent($notVisibleGroupsUsers[$groupId], $pushParams);
			}
			else
			{
				PushService::addEventByTag(PullDictionary::PULL_PROJECTS_TAG, $pushParams);
			}
		}
	}
}

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