Static Public Member Functions | |
static | registerUser ($post, $connection) |
static | getAlienUserbyId ($id, $connection) |
static | getAlienUserbyUsername ($username, $connection) |
static | userExists ($username, $connection) |
static | userIdExists ($id, $connection) |
static | passwordRequirements ($password, $lenght, $specialchars) |
static | containRoles ($roles, $userRoles) |
static | editUser ($oldUserId, $editUser, $connection) |
static | setRole ($user, $newRoles, $connection) |
static | mkRoleObjects ($dbRoles) |
static | getIdFromRole ($role, $connection) |
static | setPassword ($username, $password, $connection) |
static | getUsernameById ($userid, $connection) |
static | deleteUser ($id, $connection) |
static | getUserById ($userid, $connection) |
usertools is a little collection of static tools to make a faster developement possible..
|
static |
contain the user one of the necessary roles? use getRoles of the user-object!
$roles | |
$userRoles | use $roles the same way as userRoles (change in default.php) |
|
static |
int | $oldUserId | |
array | $editUser | a post-variable which contains a user.. working var-names: password = cleartext-password name = the name of the user.. username = the username role = the new role |
PDO | $connection |
|
static |
get a alienuser
$id | |
$connection |
|
static |
Resolve a username with a id..
unknown_type | $userid | |
unknown_type | $connection |
|
static |
Resolve a username with a id..
unknown_type | $userid | |
unknown_type | $connection |
|
static |
What's required for a password? is the password strong enough?
unknown_type | $password | |
unknown_type | $lenght | |
unknown_type | $specialchars |
|
static |
create a user
array | $post | your post-variable it must contain password password2 username role name |
unknown_type | $connection |
|
static |
Set a password
unknown_type | $username | |
unknown_type | $password | |
unknown_type | $connection |
|
static |
Set new roles
int | $userid | |
String | $oldRole | |
String | $newRole | |
PDO | $connection | DEPRECATED |
|
static |
Check, if a user exists (with name)
unknown_type | $username | |
unknown_type | $connection |