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

	$key = (int) $userId . '|' . $contextId;

	// Cache instance in pool
	if ( ! isset(self::$instances[$key]) )
		self::$instances[$key] = new self($userId, $contextId);

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