PHP Класс PartKeepr\AuthBundle\Entity\User

Наследование: extends PartKeepr\CoreBundle\Entity\BaseEntity, implements Symfony\Component\Security\Core\User\UserInterface, implements Symfony\Component\Security\Core\User\EquatableInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

Creates a new user object.
public __construct ( string $username = null, UserProvider $provider = null )
$username string The username to set (optional)
$provider UserProvider The authentification provider

compareHashedPassword() публичный метод

Compares the given hashed password with the object's hashed password.
public compareHashedPassword ( string $hashedPassword ) : boolean
$hashedPassword string The md5-hashed password
Результат boolean true if the passwords match, false otherwise

comparePassword() публичный метод

Compares the given un-hashed password with the object's hashed password.
public comparePassword ( string $password ) : boolean
$password string The unhashed password
Результат boolean true if the passwords match, false otherwise

eraseCredentials() публичный метод

public eraseCredentials ( )

getEmail() публичный метод

public getEmail ( ) : string
Результат string

getInitialUserPreferences() публичный метод

public getInitialUserPreferences ( ) : string
Результат string

getLastSeen() публичный метод

Retrieve the last seen flag for a user.
public getLastSeen ( ) : DateTime
Результат DateTime

getNewPassword() публичный метод

public getNewPassword ( )

getPassword() публичный метод

public getPassword ( ) : string
Результат string

getProvider() публичный метод

Returns the authentification provider.
public getProvider ( ) : UserProvider
Результат UserProvider

getRoles() публичный метод

public getRoles ( )

getSalt() публичный метод

public getSalt ( )

getTipHistories() публичный метод

public getTipHistories ( ) : mixed
Результат mixed

getUsername() публичный метод

Returns the username.
public getUsername ( ) : string
Результат string The username

isActive() публичный метод

Returns if the user is active.
public isActive ( ) : boolean
Результат boolean

isAdmin() публичный метод

Returns the admin flag.
public isAdmin ( ) : boolean
Результат boolean True if the user is an admin

isEqualTo() публичный метод

public isEqualTo ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

isLegacy() публичный метод

Returns if the user is a legacy user.
public isLegacy ( ) : boolean
Результат boolean

isProtected() публичный метод

public isProtected ( ) : boolean
Результат boolean

setActive() публичный метод

Sets if the user is active.
public setActive ( boolean $active )
$active boolean

setAdmin() публичный метод

Sets the admin flag.
public setAdmin ( boolean $bAdmin )
$bAdmin boolean True if the user is an admin, false otherwise

setEmail() публичный метод

public setEmail ( string $email )
$email string

setInitialUserPreferences() публичный метод

public setInitialUserPreferences ( string $initialUserPreferences )
$initialUserPreferences string

setLegacy() публичный метод

Marks a user as a legacy user.
public setLegacy ( boolean | true $legacy = true )
$legacy boolean | true

setNewPassword() публичный метод

Sets the new password. Used for password changes.
public setNewPassword ( string $password )
$password string The new password

setPassword() публичный метод

Sets the user's password.
public setPassword ( string $password )
$password string

setProtected() публичный метод

public setProtected ( boolean $protected )
$protected boolean

setProvider() публичный метод

Sets the authentification provider.
public setProvider ( UserProvider $provider )
$provider UserProvider

setRawUsername() публичный метод

This method should only be used for building a temporary user for login checks.
public setRawUsername ( string $username )
$username string The raw username

setTipHistories() публичный метод

public setTipHistories ( mixed $tipHistories )
$tipHistories mixed

setUsername() публичный метод

Sets the username.
public setUsername ( string $username )
$username string The username to set.

updateSeen() публичный метод

Updates the last seen field to the current time.
public updateSeen ( )