• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/usestore.php
  • Класс: BitrixCatalogComponentUseStore
  • Вызов: UseStore::installPreset
public function installPreset(array $list)
{
	foreach (CatalogComponentPresetEnum::getAllType() as $type)
	{
		in_array($type, $list) ?
			Factory::create($type)->enable() :
			Factory::create($type)->disable();
	}
}