$db
$db : \nre\models\DatabaseDriver
Database connection
Model of the UsersAgent to list users and get their data.
getUsers(string $sort, string $username = null, integer $limit = null, integer $offset) : array
Get registered users.
string | $sort | Field to sort by |
string | $username | Only get users with the given username (optional) |
integer | $limit | Limit amount of Characters (optional) |
integer | $offset | Offset (optional) |
Users
createUser(string $username, string $prename, string $surname, string $email, string $password) : integer
Create a new user.
string | $username | Username of the user to create |
string | $prename | Prename of the user to create |
string | $surname | Surname of the user to create |
string | E‑Mail-Address of the user to create |
|
string | $password | Password of the user to create |
ID of the newly created user
editUser(integer $userId, string $username, string $prename, string $surname, string $email, string $password, boolean $mailing)
Edit a user.
integer | $userId | ID of the user to delete |
string | $username | New name of user |
string | $prename | Prename of the user to create |
string | $surname | Surname of the user to create |
string | Changed e‑mail-address of user |
|
string | $password | Changed plaintext password of user |
boolean | $mailing | Whether to activate mailing or not |