Method |
Description |
|
__construct ( ) |
|
|
__toString ( ) |
|
|
addGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null |
Add a group to the user groups |
|
addRole ( $role ) |
|
|
equals ( Symfony\Component\Security\Core\User\AccountInterface $account ) : boolean |
Implementation of AccountInterface. |
|
eraseCredentials ( ) |
Removes sensitive data from the user. |
|
generateConfirmationToken ( ) : null |
Generate confirmationToken if it is not set |
|
getAlgorithm ( ) |
|
|
getConfirmationToken ( ) : string |
Get confirmationToken |
|
getCreatedAt ( ) : DateTime |
|
|
getEmail ( ) : string |
Get email |
|
getEmailCanonical ( ) : string |
Get the canonical email in search and sort queries |
|
getGroupNames ( ) : array |
Gets the name of the groups which includes the user |
|
getGroups ( ) : Doctrine\Common\Collections\Collection |
Get groups granted to the user |
|
getId ( ) : mixed |
Return the user unique id |
|
getLastLogin ( ) : DateTime |
|
|
getPassword ( ) : string |
Implements AccountInterface
Get the encrypted password |
|
getPasswordRequestedAt ( ) : DateTime |
Get the timestamp that the user requested a password reset. |
|
getPlainPassword ( ) |
|
|
getRoles ( ) : array |
Return the user roles
Implements AccountInterface |
|
getSalt ( ) : string |
Implementation of AccountInterface |
|
getUpdatedAt ( ) : DateTime |
|
|
getUsername ( ) : string |
|
|
getUsernameCanonical ( ) : string |
Get the canonical username in search and sort queries |
|
hasGroup ( string $name ) : boolean |
Indicates whether the user belongs to the specified group or not |
|
hasRole ( string $role ) : void |
Never use this to check if this user has access to anything! |
|
incrementCreatedAt ( ) |
|
|
incrementUpdatedAt ( ) |
|
|
isAccountNonExpired ( ) : boolean |
Checks whether the user's account has expired. |
|
isAccountNonLocked ( ) : boolean |
Checks whether the user is locked. |
|
isCredentialsExpired ( ) |
|
|
isCredentialsNonExpired ( ) : boolean |
Checks whether the user's credentials (password) has expired. |
|
isEnabled ( ) : boolean |
Checks whether the user is enabled. |
|
isExpired ( ) |
|
|
isLocked ( ) |
|
|
isPasswordRequestNonExpired ( integer $ttl ) : boolean |
Checks whether the password reset request has expired. |
|
isSuperAdmin ( ) : boolean |
Tell if the the given user has the super admin role |
|
isUser ( FOS\UserBundle\Model\UserInterface $user = null ) : boolean |
Tell if the the given user is this user
Useful when not hydrating all fields. |
|
removeGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null |
Remove a group from the user groups |
|
removeRole ( $role ) |
|
|
setAlgorithm ( $algorithm ) |
|
|
setConfirmationToken ( $confirmationToken ) : null |
Set confirmationToken |
|
setCredentialsExpireAt ( DateTime $date ) |
|
|
setCredentialsExpired ( $boolean ) |
|
|
setEmail ( string $email ) |
Set email. |
|
setEmailCanonical ( string $emailCanonical ) |
Set emailCanonical. |
|
setEnabled ( boolean $boolean ) |
|
|
setExpired ( boolean $boolean ) : void |
Sets this user to expired |
|
setExpiresAt ( DateTime $date ) |
|
|
setLastLogin ( DateTime $time ) |
|
|
setLocked ( $boolean ) |
|
|
setPassword ( string $password ) : void |
Sets the hashed password. |
|
setPasswordRequestedAt ( DateTime $date ) |
Set the timestamp that the user requested a password reset. |
|
setPlainPassword ( $password ) |
|
|
setRoles ( array $roles ) |
|
|
setSuperAdmin ( boolean $boolean ) : void |
Sets the super admin status |
|
setUsername ( string $username ) |
Set username. |
|
setUsernameCanonical ( string $usernameCanonical ) |
Set usernameCanonical. |
|