![]() |
Standards
1.0
|
A user entity for the UserSystem standard. More...
Public Member Functions | |
| changeUsername ($newUsername) | |
| getUsername () | |
| getRegisterTime () | |
| getEmail () | |
| getId () | |
| isConfirmed () | |
| checkPassword ($plainPassword) | |
| checkPermission ($permissionPath) | |
| addToGroup ($groupName) | |
| removeFromGroup ($group) | |
| inGroup ($groupName) | |
| setPassword ($newPassword) | |
| notify ($title, $body, $label="Notification", $sendEmail=true) | |
Static Public Member Functions | |
| static | getRawView ($injections, $level=1) |
Data Fields | |
| const | iType = "User" |
| const | iShort = "u" |
| const | iParent = "iUserSystem" |
A user entity for the UserSystem standard.
Tokens:
| addToGroup | ( | $groupName | ) |
Adds this user to the groupName.
| changeUsername | ( | $newUsername | ) |
Sets the users username to the newUsername.
| checkPassword | ( | $plainPassword | ) |
| checkPermission | ( | $permissionPath | ) |
Checks if the user has the permissionPath permission.
See iUserSystem for more info on Permission paths.
|
static |
Levels:
Example:
| inGroup | ( | $groupName | ) |
Checks if the user is in the groupName group.
| notify | ( | $title, | |
| $body, | |||
$label = "Notification", |
|||
$sendEmail = true |
|||
| ) |
This will use the installed iNotificationSystem standard to notify the user.
If an iNotificationSystem standard is not installed this will send an email with the $title being the subject.
| removeFromGroup | ( | $group | ) |
Removes this user from the groupName.
| setPassword | ( | $newPassword | ) |
This will set the password to the $newPassword