PHP 클래스 PartKeepr\AuthBundle\Entity\User

상속: extends PartKeepr\CoreBundle\Entity\BaseEntity, implements Symfony\Component\Security\Core\User\UserInterface, implements Symfony\Component\Security\Core\User\EquatableInterface
파일 보기 프로젝트 열기: partkeepr/PartKeepr 1 사용 예제들

공개 메소드들

메소드 설명
__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() 공개 메소드

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