• Модуль: tasks
  • Путь к файлу: ~/bitrix/modules/tasks/classes/general/tasklistctrl.php
  • Класс: CTaskListCtrl
  • Вызов: CTaskListCtrl::getInstance
static function getInstance($userId)
{
	CTaskAssert::assertLaxIntegers($userId);
	CTaskAssert::assert($userId > 0);

	$key = (string) ((int) $userId);

	if ( ! array_key_exists($key, self::$instancesOfSelf) )
		self::$instancesOfSelf[$key] = new self($userId);

	return (self::$instancesOfSelf[$key]);
}