LeadSettings::__construct

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. LeadSettings
  4. __construct
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/settings/leadsettings.php
  • Класс: Bitrix\Crm\Settings\LeadSettings
  • Вызов: LeadSettings::__construct
function __construct()
{
	$this->defaultListView = new IntegerSetting('lead_default_list_view', self::VIEW_KANBAN);
	$this->isOpened = new BooleanSetting('lead_opened_flag', true);
	$this->enableProductRowExport = new BooleanSetting('enable_lead_prod_row_export', true);
	$this->enableAutoGenRc = new BooleanSetting('enable_auto_gen_rc', true);
	$this->enableAutoUsingFinishedLead = new BooleanSetting('enable_auto_using_finished_lead', false);
	$this->enableDeferredCleaning = new BooleanSetting('enable_lead_deferred_cleaning', true);
	$this->enableRecycleBin = new BooleanSetting('enable_lead_recycle_bin', true);
	$this->initIsFactoryEnabledSetting(\CCrmOwnerType::Lead, false);

	$completionConfig = array();
	foreach(Activity\Provider\ProviderManager::getCompletableProviderList() as $providerInfo)
	{
		$completionConfig[$providerInfo['ID']] = true;
	}
	$this->activityCompletionConfig = new ArraySetting('lead_act_completion_cfg', $completionConfig);
	$this->freeModeConverterConfig = new ArraySetting(
		'lead_free_mode_converter_cfg',
		[
			'items' => [\CCrmOwnerType::Deal, \CCrmOwnerType::Contact],
			'dealCategoryId' => 0,
			'completeActivities' => false
		]
	);
}

Добавить комментарий