• Модуль: rest
  • Путь к файлу: ~/bitrix/modules/rest/lib/dictionary/remotedictionary.php
  • Класс: BitrixRestDictionaryRemoteDictionary
  • Вызов: RemoteDictionary::load
protected function load()
{
	$httpClient = new HttpClient();

	$uri = $this->getDictionaryUri();

	$httpResult = $httpClient->get($uri->getLocator());

	try
	{
		$result = Json::decode($httpResult);
	}
	catch(ArgumentException $e)
	{
		$result = null;
	}

	return $result;
}