- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/component/userprofile.php
- Класс: BitrixIntranetComponentUserProfile
- Вызов: UserProfile::getUrls
protected function getUrls()
{
global $APPLICATION;
$urls = [
'Security' => CComponentEngine::MakePathFromTemplate($this->arParams['PATH_TO_USER_SECURITY'] ?? null, [
"user_id" => (int) $this->arParams["ID"]
]),
'Passwords' => CComponentEngine::MakePathFromTemplate($this->arParams['PATH_TO_USER_PASSWORDS'] ?? null, [
'user_id' => (int) $this->arParams['ID']
]),
'CommonSecurity' => CComponentEngine::MakePathFromTemplate($this->arParams["PATH_TO_USER_COMMON_SECURITY"] ?? null, [
'user_id' => (int) $this->arParams['ID']
]),
];
if (Loader::includeModule('dav'))
{
$this->arParams["PATH_TO_USER_SYNCHRONIZE"] = trim($this->arParams["PATH_TO_USER_SYNCHRONIZE"]);
if ($this->arParams["PATH_TO_USER_SYNCHRONIZE"] == '')
$this->arParams["PATH_TO_USER_SYNCHRONIZE"] = htmlspecialcharsbx($APPLICATION->GetCurPage()."?".$this->arParams["PAGE_VAR"]."=user_synchronize&".$this->arParams["USER_VAR"]."=#user_id#");
$urls['Synchronize'] = CComponentEngine::MakePathFromTemplate($this->arParams['PATH_TO_USER_SYNCHRONIZE'], [
'user_id' => $this->arParams['ID']
]);
}
$uri = new BitrixMainWebUri($this->arParams["LIST_URL"]);
$uri->addParams([
'apply_filter' => 'Y',
'TAGS' => '#TAG#'
]);
$urls["PathToTag"] = $uri->getUri();
return $urls;
}