• Модуль: webdav
  • Путь к файлу: ~/bitrix/modules/webdav/classes/iblocksocnetevent.php
  • Класс: CWebDavSocNetEvent
  • Вызов: CWebDavSocNetEvent::__construct
public function __construct()
{
	if (IsModuleInstalled('intranet')) // try to get defaults
	{
		$userPath = COption::GetOptionString('intranet', 'path_user', '', SITE_ID);
		if (!empty($userPath))
		{
			$userPath = str_replace("#USER_ID#", $GLOBALS['USER']->GetID(), $userPath);
			$this->arPath['PATH_TO_USER'] = $userPath;
			$this->arPath['PATH_TO_FILES'] = $userPath.'files/lib/';
			$this->arPath['ELEMENT_UPLOAD_URL'] = $userPath.'files/element/upload/0/';
			$this->arPath['ELEMENT_SHOW_INLINE_URL'] = $userPath.'files/element/edit/#element_id#/VIEW/';
			$this->arPath['ELEMENT_EDIT_INLINE_URL'] = $userPath.'files/element/edit/#element_id#/EDIT/';
			$this->arPath['ELEMENT_HISTORYGET_URL'] = $userPath.'files/element/historyget/#element_id#/#element_name#';
		}
	}
}