Метод | Описание | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Values\User\User $user = null, array $roles = [] ) | ||
__toString ( ) | ||
eraseCredentials ( ) | Removes sensitive data from the user. | |
getAPIUser ( ) : eZ\Publish\API\Repository\Values\User\User | ||
getPassword ( ) : string | Returns the password used to authenticate the user. | |
getRoles ( ) : Role[] | Returns the roles granted to the user. | |
getSalt ( ) : string | Returns the salt that was originally used to encode the password. | |
getUsername ( ) : string | Returns the username used to authenticate the user. | |
isAccountNonExpired ( ) : boolean | Checks whether the user's account has expired. | |
isAccountNonLocked ( ) : boolean | Checks whether the user is locked. | |
isCredentialsNonExpired ( ) : boolean | Checks whether the user's credentials (password) has expired. | |
isEnabled ( ) : boolean | Checks whether the user is enabled. | |
isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user ) | ||
setAPIUser ( eZ\Publish\API\Repository\Values\User\User $user ) |
public __construct ( eZ\Publish\API\Repository\Values\User\User $user = null, array $roles = [] ) | ||
$user | eZ\Publish\API\Repository\Values\User\User | |
$roles | array |
public eraseCredentials ( ) |
public getAPIUser ( ) : eZ\Publish\API\Repository\Values\User\User | ||
Результат | eZ\Publish\API\Repository\Values\User\User |
public getPassword ( ) : string | ||
Результат | string | The password |
public function getRoles()
{
return array( 'ROLE_USER' );
}
Alternatively, the roles might be stored on a roles property,
and populated in any number of different ways when the user object
is created. public getRoles ( ) : Role[] | ||
Результат | Role[] | The user roles |
public getUsername ( ) : string | ||
Результат | string | The username |
public isAccountNonExpired ( ) : boolean | ||
Результат | boolean | true if the user's account is non expired, false otherwise |
public isAccountNonLocked ( ) : boolean | ||
Результат | boolean | true if the user is not locked, false otherwise |
public isCredentialsNonExpired ( ) : boolean | ||
Результат | boolean | true if the user's credentials are non expired, false otherwise |
public isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user ) | ||
$user | Symfony\Component\Security\Core\User\UserInterface |
public setAPIUser ( eZ\Publish\API\Repository\Values\User\User $user ) | ||
$user | eZ\Publish\API\Repository\Values\User\User |