• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/lib/internals/counter/collector/usercollector.php
  • Класс: BitrixTasksInternalsCounterCollectorUserCollector
  • Вызов: UserCollector::getInstance
static function getInstance(int $userId)
{
	if (!array_key_exists($userId, self::$instances))
	{
		self::$instances[$userId] = new self($userId);
	}

	return self::$instances[$userId];
}