![]() |
Standards
1.0
|
The global UserSystem instance. More...
Public Member Functions | |
| isLoggedIn () | |
| getLoggedIn () | |
| checkPassword ($handle, $password) | |
| login ($handle, $password) | |
| logout () | |
| registerUser ($username, $email, $password, $needsConfirm=true) | |
| createGroup ($groupName, $permissions) | |
| removeGroup ($groupName) | |
| setGroup ($groupName, $permissions) | |
| getGroup ($groupName) | |
Data Fields | |
| const | iType = "UserSystem" |
| const | iShort = "us" |
| const | iVersion = "1.0" |
| const | iEntities |
| const | iWidgets |
The global UserSystem instance.
Global constants:
Base config:
| checkPassword | ( | $handle, | |
| $password | |||
| ) |
This is a fast(compute) way to check if a password is correct.
| createGroup | ( | $groupName, | |
| $permissions | |||
| ) |
Creates a group with the groupName and the permissions
| getGroup | ( | $groupName | ) |
Gets the groupName permissions.
| getLoggedIn | ( | ) |
| isLoggedIn | ( | ) |
| login | ( | $handle, | |
| $password | |||
| ) |
This will check if the handle and password match if so it will log the user in
| logout | ( | ) |
This will logout the currently logged in user.
| registerUser | ( | $username, | |
| $email, | |||
| $password, | |||
$needsConfirm = true |
|||
| ) |
Tries to register a new user with the given information.
Error ids:
| removeGroup | ( | $groupName | ) |
Removes users in the groupName group and then removes the group.
| setGroup | ( | $groupName, | |
| $permissions | |||
| ) |
Sets the permissions to the groupName.
| const iEntities |
Must have User constant and $User static member.
| const iWidgets |
Must have all constants and $[Widget name] variables.