• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/ui/entityselector/companyprovider.php
  • Класс: Bitrix\Crm\Integration\UI\EntitySelector\CompanyProvider
  • Вызов: CompanyProvider::__construct
public function __construct(array $options = [])
{
	parent::__construct($options);

	$this->categoryId = (int)($options['categoryId'] ?? 0);
	$this->options['categoryId'] = $this->categoryId;

	$this->enableMyCompanyOnly = (bool)($options['enableMyCompanyOnly'] ?? $this->enableMyCompanyOnly);
	$this->excludeMyCompany = (bool)($options['excludeMyCompany'] ?? $this->excludeMyCompany);

	$this->options['enableMyCompanyOnly'] = $this->enableMyCompanyOnly;
	$this->options['excludeMyCompany'] = $this->excludeMyCompany;
}