• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/push/groupsender.php
  • Класс: BitrixTasksInternalsCounterPushGroupSender
  • Вызов: GroupSender::fillPushGroup
private function fillPushGroup(array $pushList): array
{
	$res = [];
	foreach ($pushList as $push)
	{
		if (
			array_key_exists('GROUP_ID', $push)
			&& $push['GROUP_ID'] > 0
		)
		{
			$res[] = $push;
			continue;
		}

		if (array_key_exists('TASK_ID', $push))
		{
			$task = TaskRegistry::getInstance()->get((int)$push['TASK_ID']);
			$push['GROUP_ID'] = $task['GROUP_ID'];
		}

		if (!isset($push['GROUP_ID']))
		{
			continue;
		}

		$res[] = $push;
	}
	return $res;
}