Detailed Description
Inheritance diagram for User:Public Member Functions | |
| getOID () | |
| setLogin ($login) | |
| getLogin () | |
| setPassword ($password) | |
| getPassword () | |
| verifyPassword ($password) | |
| setIsActive ($isActive) | |
| isActive () | |
| setIsSuperUser ($isSuperUser) | |
| isSuperUser () | |
| setConfig ($config) | |
| getConfig () | |
| hasRole ($roleName) | |
| getRoles () | |
Member Function Documentation
◆ getOID()
| getOID | ( | ) |
◆ setLogin()
| setLogin | ( | $login | ) |
Set the login of the user.
- Parameters
-
$login The login of the user.
Implemented in AnonymousUser, and AbstractUser.
◆ getLogin()
| getLogin | ( | ) |
Get the login of the user.
- Returns
- The login of the user.
Implemented in AbstractUser, and AnonymousUser.
◆ setPassword()
| setPassword | ( | $password | ) |
Set the password of the user.
Implementations of User must hash the password before persisting it.
- Parameters
-
$password The plaintext password of the user.
Implemented in AbstractUser, and AnonymousUser.
◆ getPassword()
| getPassword | ( | ) |
Get the password of the user.
The result is expected to be hashed, if the user was persisted already. If not persisted, the result may be the plaintext password.
- Returns
- The password of the user,
Implemented in AbstractUser, and AnonymousUser.
◆ verifyPassword()
| verifyPassword | ( | $password | ) |
Verify the given password against the password of the user.
- Parameters
-
$password The plaintext password to verify
- Returns
- Boolean.
Implemented in AbstractUser, and AnonymousUser.
◆ setIsActive()
| setIsActive | ( | $isActive | ) |
Set if the user is active.
- Parameters
-
$isActive Boolean whether the user is active or not
Implemented in AbstractUser, and AnonymousUser.
◆ isActive()
| isActive | ( | ) |
◆ setIsSuperUser()
| setIsSuperUser | ( | $isSuperUser | ) |
Set if the user is super user (can't be inactive).
- Parameters
-
$isSuperUser Boolean whether the user is super user or not
Implemented in AbstractUser, and AnonymousUser.
◆ isSuperUser()
| isSuperUser | ( | ) |
Check if the user is super user (can't be inactive).
- Returns
- Boolean
Implemented in AbstractUser, and AnonymousUser.
◆ setConfig()
| setConfig | ( | $config | ) |
Set the configuration file of the user.
- Parameters
-
$config The configuration file of the user.
Implemented in AbstractUser, and AnonymousUser.
◆ getConfig()
| getConfig | ( | ) |
Get the configuration file of the user.
- Returns
- The configuration file of the user.
Implemented in AbstractUser, and AnonymousUser.
◆ hasRole()
| hasRole | ( | $roleName | ) |
Check for a certain role in the user roles.
- Parameters
-
$roleName The role name to check for. e.g. "administrators"
- Returns
- Boolean whether the user has the role
Implemented in AbstractUser, and AnonymousUser.
◆ getRoles()
| getRoles | ( | ) |