Method |
Description |
|
__construct ( string $username = null, UserProvider $provider = null ) |
Creates a new user object. |
|
compareHashedPassword ( string $hashedPassword ) : boolean |
Compares the given hashed password with the object's
hashed password. |
|
comparePassword ( string $password ) : boolean |
Compares the given un-hashed password with the
object's hashed password. |
|
eraseCredentials ( ) |
|
|
getEmail ( ) : string |
|
|
getInitialUserPreferences ( ) : string |
|
|
getLastSeen ( ) : DateTime |
Retrieve the last seen flag for a user. |
|
getNewPassword ( ) |
|
|
getPassword ( ) : string |
|
|
getProvider ( ) : UserProvider |
Returns the authentification provider. |
|
getRoles ( ) |
|
|
getSalt ( ) |
|
|
getTipHistories ( ) : mixed |
|
|
getUsername ( ) : string |
Returns the username. |
|
isActive ( ) : boolean |
Returns if the user is active. |
|
isAdmin ( ) : boolean |
Returns the admin flag. |
|
isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user ) |
|
|
isLegacy ( ) : boolean |
Returns if the user is a legacy user. |
|
isProtected ( ) : boolean |
|
|
setActive ( boolean $active ) |
Sets if the user is active. |
|
setAdmin ( boolean $bAdmin ) |
Sets the admin flag. |
|
setEmail ( string $email ) |
|
|
setInitialUserPreferences ( string $initialUserPreferences ) |
|
|
setLegacy ( boolean | true $legacy = true ) |
Marks a user as a legacy user. |
|
setNewPassword ( string $password ) |
Sets the new password. Used for password changes. |
|
setPassword ( string $password ) |
Sets the user's password. |
|
setProtected ( boolean $protected ) |
|
|
setProvider ( UserProvider $provider ) |
Sets the authentification provider. |
|
setRawUsername ( string $username ) |
Sets the raw username, without replacing any special chars. |
|
setTipHistories ( mixed $tipHistories ) |
|
|
setUsername ( string $username ) |
Sets the username. |
|
updateSeen ( ) |
Updates the last seen field to the current time. |
|