• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/restriction/userfieldaddrestriction.php
  • Класс: Bitrix\Crm\Restriction\UserFieldAddRestriction
  • Вызов: UserFieldAddRestriction::__construct
public function __construct()
{
	$restrictionName = 'crm_user_field_limit';
	$limit = max(0, (int)Bitrix24Manager::getVariable($restrictionName));
	$restrictionSliderInfo = [
		'ID' => 'limit_crm_users_fields',
	];
	parent::__construct($restrictionName, $limit, null, $restrictionSliderInfo);
	$this->load(); // load actual $limit from options
}