• Модуль: calendar
  • Путь к файлу: ~/bitrix/modules/calendar/classes/general/calendar.php
  • Класс: CCalendar
  • Вызов: CCalendar::GetUserUrl
static function GetUserUrl($userId = 0, $pathToUser = "")
{
	if ($pathToUser == '')
	{
		if (self::$pathToUser == '')
		{
			if (empty(self::$pathesForSite))
			{
				self::$pathesForSite = self::GetPathes(SITE_ID);
			}
			self::$pathToUser = self::$pathesForSite['path_to_user'];
		}
		$pathToUser = self::$pathToUser;
	}

	return CUtil::JSEscape(CComponentEngine::MakePathFromTemplate($pathToUser, array("user_id" => $userId, "USER_ID" => $userId)));
}