• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/kanban.php
  • Класс: Bitrix\Crm\Kanban
  • Вызов: Kanban::getInstance
static function getInstance(string $entityType, array $params = []): self
{
	$entityTypeName = $entityType;
	if (isset($params['CATEGORY_ID']) && $params['CATEGORY_ID'] > 0)
	{
		$entityTypeName = $entityType . '-' . (int)$params['CATEGORY_ID'];
	}

	if(!isset(self::$instances[$entityTypeName]))
	{
		self::$instances[$entityTypeName] = new static($entityType, $params);
	}

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