• Модуль: webservice
  • Путь к файлу: ~/bitrix/modules/webservice/classes/general/sharepoint/client.php
  • Класс: CSPListsClient
  • Вызов: CSPListsClient::__initialize
protected function __initialize()
{
	global $APPLICATION;

	if ($this->bInit)
		return true;

	if (!$this->arConnectionParams['host'])
	{
		$APPLICATION->ThrowException('No SP host specified!');
		return false;
	}

	$this->CSOAPClient($this->arConnectionParams['host'], $this->arConnectionParams['path'], $this->arConnectionParams['port']);

	if ($this->arConnectionParams['user'])
	{
		$this->setLogin($this->arConnectionParams['user']);
		$this->setPassword($this->arConnectionParams['pass']);
	}

	$this->bInit = true;

	return true;
}