• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/preset/factory.php
  • Класс: BitrixCatalogComponentPresetFactory
  • Вызов: Factory::create
public function create($type)
{
	if ($type == Enum::TYPE_CRM)
	{
		return new Crm();
	}
	elseif ($type == Enum::TYPE_MATERIAL)
	{
		return new Material();
	}
	elseif ($type == Enum::TYPE_MENU)
	{
		return new Menu();
	}
	elseif ($type == Enum::TYPE_STORE)
	{
		return new Store();
	}
	return null;
}