• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/data/connectionpool.php
  • Класс: BitrixMainDataConnectionPool
  • Вызов: ConnectionPool::getConnectionParameters
protected function getConnectionParameters($name)
{
	if (!is_string($name))
	{
		throw new MainArgumentTypeException("name", "string");
	}

	if ($name === "")
	{
		throw new MainArgumentNullException("name");
	}

	$params = null;
	if (isset($this->connectionParameters[$name]) && !empty($this->connectionParameters[$name]))
	{
		$params = $this->connectionParameters[$name];
	}
	else
	{
		$configParams = ConfigConfiguration::getValue('connections');
		if (isset($configParams[$name]) && !empty($configParams[$name]))
		{
			$params = $configParams[$name];
		}
	}

	if ($params !== null && $name === static::DEFAULT_CONNECTION_NAME && !isset($params["include_after_connected"]))
	{
		$params["include_after_connected"] = BitrixMainLoader::getPersonal("php_interface/after_connect_d7.php");
	}

	return $params;
}