getLanguage()

The method returns the language of the user.

Synopsis

public string getLanguage();

Return Value

The language of the user.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main(mapping event)
{
  shared_ptr<UserManagement> userMgm = UserManagement::getInstance();
  shared_ptr<UserManagementUser> UserData;
  dyn_anytype allUsers=userMgm.getAllSavedUsers();
  for (int i =1; i<=dynlen(allUsers); i++)
  {
    UserData = userMgm.getUserByName(allUsers[i].getName());
    DebugN("Users:", UserData.getName(),UserData.getLanguage() );
    /* Returns the name of the user and the language */
  }
}

Assignment

User administration

See also

setPermissionDescription()