• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/integration/ui/entityselector/botprovider.php
  • Класс: BitrixImIntegrationUIEntitySelectorBotProvider
  • Вызов: BotProvider::__construct
public function __construct(array $options = [])
{
	parent::__construct();

	if (isset($options['searchableBotTypes']) && is_array($options['searchableBotTypes']))
	{
		$this->options['searchableBotTypes'] = $options['searchableBotTypes'];
	}

	$this->options['fillDialog'] = true;
	if (isset($options['fillDialog']) && is_bool($options['fillDialog']))
	{
		$this->options['fillDialog'] = $options['fillDialog'];
	}

	$this->options['fillDialogWithDefaultValues'] = true;
	if (isset($options['fillDialogWithDefaultValues']) && is_bool($options['fillDialogWithDefaultValues']))
	{
		$this->options['fillDialogWithDefaultValues'] = $options['fillDialogWithDefaultValues'];
	}
}