getComment()
The method returns the comments of a user.
Synopsis
public langString getComment();
Return Value
The comments of a 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() );
DebugN("Domain:", UserData.getDomain(), "Comment:", UserData.getComment() );
/* Returns the name of the user, the language and the comment */
}
}
Assignment
See also