• Модуль: disk
  • Путь к файлу: ~/bitrix/modules/disk/lib/storage.php
  • Класс: BitrixDiskStorage
  • Вызов: Storage::changeBaseUrl
public function changeBaseUrl($baseUrl)
{
	if(!$this->getProxyType() instanceof ProxyTypeCommon)
	{
		$this->errorCollection->addOne(new Error('Could not set base url to storage. Storage must have ProxyTypeCommon'));

		return false;
	}

	$success = $this->setValueInMiscData('BASE_URL', $baseUrl);
	if($success)
	{
		$this->rebuildProxyType();
	}

	return $success;
}