UserInfo userInfo = xUserInfo::find( false, curUserId() );
if ( userInfo ) {
info( "Name: " + userInfo.name );
info( "Language: " + userInfo.language );
info( "Enabled: " + ( userInfo.enable ? "Yes" : "No" ) );
}
Output:Name: Aldiss, Brian Language: en-us Enabled: YesNote: For current user you can use directly:
UserInfo userInfo = xUserInfo::find();
No comments:
Post a Comment