• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/processor/userprocessor.php
  • Класс: BitrixTasksInternalsCounterProcessorUserProcessor
  • Вызов: UserProcessor::getUserTasks
private function getUserTasks(): array
{
	if ($this->userTasks === null)
	{
		$sql = "
			SELECT DISTINCT(TASK_ID)
			FROM b_tasks_member
			WHERE USER_ID = {$this->userId}
		";
		$res = Application::getConnection()->query($sql);
		$this->userTasks = [];
		while ($row = $res->fetch())
		{
			$this->userTasks[] = $row['TASK_ID'];
		}
	}

	return $this->userTasks;
}