Bitrix Site Manager

CUser::GetParam

mixed
CUser::GetParam(
 string param_name
)

The method GetParam returns one of the user parameters stored in the authorization session (usually called from the $USER object).

Parameters

Parameter Description
param_name Parameter name. The following values are possible:
  • AUTHORIZED - returns "Y" if the user is authorized;
  • USER_ID - user ID;
  • LOGIN - login;
  • EMAIL - e-mail;
  • NAME - full name;
  • GROUPS - array of groups to which the user belongs;
  • ADMIN - returns true if the user is in the Administrators group;
  • PASSWORD_HASH - user password hash (md5);
  • FIRST_NAME - user first name;
  • LAST_NAME - user last name.

See Also

Example



<?
global $USER;
echo "E-Mail: ".$USER->GetParam("EMAIL");
?>