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 ( )