메소드 | 설명 | |
---|---|---|
AddUser ( |
Adds a given username to the database
|
|
GetUser ( |
Gets a user object by a user object.
|
|
GetUserByID ( int id ) : |
Gets a user object by their user ID.
|
|
GetUserByName ( string name ) : |
Gets a user object by name.
|
|
GetUserID ( string username ) : int |
Gets the database ID of a given user object from the database.
|
|
GetUsers ( ) : List |
Gets all users from the database.
|
|
GetUsersByName ( string username, bool notAtStart = false ) : List |
Gets all users from the database with a username that starts with or contains username
|
|
RemoveUser ( |
Removes a given username from the database
|
|
SetUserGroup ( |
Sets the group for a given username
|
|
SetUserPassword ( |
Sets the Hashed Password for a given username
|
|
SetUserUUID ( |
Sets the UUID for a given username
|
|
UpdateLogin ( |
Updates the last accessed time for a database user to the current time.
|
|
UserManager ( IDbConnection db ) : System |
Creates a UserManager object. During instantiation, this method will verify the table structure against the format below.
|
메소드 | 설명 | |
---|---|---|
LoadUserFromResult ( |
Fills out the fields of a User object with the results from a QueryResult object.
|
public GetUser ( |
||
user | The user object to search by. | |
리턴 |
public GetUserByName ( string name ) : |
||
name | string | The user's name. |
리턴 |
public GetUserID ( string username ) : int | ||
username | string | The username of the user to query for. |
리턴 | int |
public GetUsersByName ( string username, bool notAtStart = false ) : List |
||
username | string | Rough username search. "n" will match "n", "na", "nam", "name", etc |
notAtStart | bool | If |
리턴 | List |
public SetUserGroup ( |
||
user | User user | |
group | string | string group |
리턴 | void |
public SetUserPassword ( |
||
user | User user | |
password | string | string password |
리턴 | void |
public SetUserUUID ( |
||
user | User user | |
uuid | string | string uuid |
리턴 | void |
public UpdateLogin ( |
||
user | The user object to modify. | |
리턴 | void |
public UserManager ( IDbConnection db ) : System | ||
db | IDbConnection | The database to connect to. |
리턴 | System |