General Introduction
Settings
Add
Authorize
CanDoFileOperation
ChangePassword
Delete
GetByID
GetByLogin
GetCount
GetEmail
GetExternalAuthList
GetFirstName
GetFullName
GetID
GetLastName
GetList
GetLogin
GetParam
GetPasswordHash
GetUserGroup
GetUserGroupArray
GetUserGroupList
GetUserGroupString
IsAdmin
IsAuthorized
IsOnLine
Login
LoginByHash
Logout
Register
SavePasswordHash
SendPassword
SendUserInfo
SetLastActivityDate
SetParam
SetUserGroup
SetUserGroupArray
SimpleRegister
Update
Complex logic in filter
Special variables
Special constants
GetLogin
string CUser::GetLogin()
The method returns the login of the currently authorized user (usually called from the $USER object). Non-static method.
Parameters
No parametersSee Also
- CUser fields
- CUser::GetID
- CUser::GetEmail
- CUser::GetFullName
- CUser::GetFirstName
- CUser::GetLastName
- CUser::GetParam
- CUser::GetUserGroupArray
- CUser::GetUserGroupString
Examples of use
<? global $USER; echo "[".$USER->GetID()."] (".$USER->GetLogin().") ".$USER->GetFullName(); ?>
© «Bitrix24», 2001-2023
Up