• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/user.php
  • Класс: CAllUser
  • Вызов: CAllUser::GetParam
public function GetParam($name)
{
	if (isset(static::$kernelSession["SESS_AUTH"][$name]))
	{
		return static::$kernelSession["SESS_AUTH"][$name];
	}
	else
	{
		// compatibility
		switch ($name)
		{
			case 'USER_ID':
				return (string)$this->getContext()->getUserId();

			case 'APPLICATION_ID':
				return $this->getContext()->getApplicationId();
		}
	}
	return null;
}