PHP 클래스 FOS\UserBundle\Model\User

저자: Thibault Duplessis ([email protected])
저자: Johannes M. Schmitt ([email protected])
상속: implements FOS\UserBundle\Model\UserInterface, implements FOS\UserBundle\Model\GroupableInterface
파일 보기 프로젝트 열기: KnpLabs/KnpUserBundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$algorithm string The algorithm to use for hashing
$confirmationToken string Random string sent to the user email address in order to verify it
$createdAt DateTime
$credentialsExpireAt DateTime
$credentialsExpired boolean
$email string
$emailCanonical string
$enabled boolean
$expired boolean
$expiresAt DateTime
$groups Doctrine\Common\Collections\Collection
$id
$lastLogin DateTime
$locked boolean
$password string Encrypted password. Must be persisted.
$passwordRequestedAt DateTime
$plainPassword string Plain password. Used for model validation. Must not be persisted.
$roles array
$salt string The salt to use for hashing
$updatedAt DateTime
$username string
$usernameCanonical string

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

public __construct ( )

__toString() 공개 메소드

public __toString ( )

addGroup() 공개 메소드

Add a group to the user groups
public addGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null
$group FOS\UserBundle\Model\GroupInterface
리턴 null

addRole() 공개 메소드

public addRole ( $role )

equals() 공개 메소드

Implementation of AccountInterface.
public equals ( Symfony\Component\Security\Core\User\AccountInterface $account ) : boolean
$account Symfony\Component\Security\Core\User\AccountInterface
리턴 boolean

eraseCredentials() 공개 메소드

Implements AccountInterface
public eraseCredentials ( )

generateConfirmationToken() 공개 메소드

Generate confirmationToken if it is not set
public generateConfirmationToken ( ) : null
리턴 null

getAlgorithm() 공개 메소드

public getAlgorithm ( )

getConfirmationToken() 공개 메소드

Get confirmationToken
public getConfirmationToken ( ) : string
리턴 string

getCreatedAt() 공개 메소드

public getCreatedAt ( ) : DateTime
리턴 DateTime

getEmail() 공개 메소드

Get email
public getEmail ( ) : string
리턴 string

getEmailCanonical() 공개 메소드

Get the canonical email in search and sort queries
public getEmailCanonical ( ) : string
리턴 string

getGroupNames() 공개 메소드

Gets the name of the groups which includes the user
public getGroupNames ( ) : array
리턴 array

getGroups() 공개 메소드

Get groups granted to the user
public getGroups ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection

getId() 공개 메소드

Return the user unique id
public getId ( ) : mixed
리턴 mixed

getLastLogin() 공개 메소드

public getLastLogin ( ) : DateTime
리턴 DateTime

getPassword() 공개 메소드

Implements AccountInterface Get the encrypted password
public getPassword ( ) : string
리턴 string

getPasswordRequestedAt() 공개 메소드

Get the timestamp that the user requested a password reset.
public getPasswordRequestedAt ( ) : DateTime
리턴 DateTime

getPlainPassword() 공개 메소드

public getPlainPassword ( )

getRoles() 공개 메소드

Return the user roles Implements AccountInterface
public getRoles ( ) : array
리턴 array The roles

getSalt() 공개 메소드

Implementation of AccountInterface
public getSalt ( ) : string
리턴 string

getUpdatedAt() 공개 메소드

public getUpdatedAt ( ) : DateTime
리턴 DateTime

getUsername() 공개 메소드

public getUsername ( ) : string
리턴 string

getUsernameCanonical() 공개 메소드

Get the canonical username in search and sort queries
public getUsernameCanonical ( ) : string
리턴 string

hasGroup() 공개 메소드

Indicates whether the user belongs to the specified group or not
public hasGroup ( string $name ) : boolean
$name string Name of the group
리턴 boolean

hasRole() 공개 메소드

Use the SecurityContext, or an implementation of AccessDecisionManager instead, e.g. $securityContext->vote('ROLE_USER');
public hasRole ( string $role ) : void
$role string
리턴 void

incrementCreatedAt() 공개 메소드

public incrementCreatedAt ( )

incrementUpdatedAt() 공개 메소드

public incrementUpdatedAt ( )

isAccountNonExpired() 공개 메소드

Implements AdvancedAccountInterface
public isAccountNonExpired ( ) : boolean
리턴 boolean true if the user's account is non expired, false otherwise

isAccountNonLocked() 공개 메소드

Implements AdvancedAccountInterface
public isAccountNonLocked ( ) : boolean
리턴 boolean true if the user is not locked, false otherwise

isCredentialsExpired() 공개 메소드

isCredentialsNonExpired() 공개 메소드

Implements AdvancedAccountInterface
public isCredentialsNonExpired ( ) : boolean
리턴 boolean true if the user's credentials are non expired, false otherwise

isEnabled() 공개 메소드

Implements AdvancedAccountInterface
public isEnabled ( ) : boolean
리턴 boolean true if the user is enabled, false otherwise

isExpired() 공개 메소드

public isExpired ( )

isLocked() 공개 메소드

public isLocked ( )

isPasswordRequestNonExpired() 공개 메소드

Checks whether the password reset request has expired.
public isPasswordRequestNonExpired ( integer $ttl ) : boolean
$ttl integer Requests older than this many seconds will be considered expired
리턴 boolean true if the users's password request is non expired, false otherwise

isSuperAdmin() 공개 메소드

Tell if the the given user has the super admin role
public isSuperAdmin ( ) : boolean
리턴 boolean

isUser() 공개 메소드

Tell if the the given user is this user Useful when not hydrating all fields.
public isUser ( FOS\UserBundle\Model\UserInterface $user = null ) : boolean
$user FOS\UserBundle\Model\UserInterface
리턴 boolean

removeGroup() 공개 메소드

Remove a group from the user groups
public removeGroup ( FOS\UserBundle\Model\GroupInterface $group ) : null
$group FOS\UserBundle\Model\GroupInterface
리턴 null

removeRole() 공개 메소드

public removeRole ( $role )

setAlgorithm() 공개 메소드

public setAlgorithm ( $algorithm )

setConfirmationToken() 공개 메소드

Set confirmationToken
public setConfirmationToken ( $confirmationToken ) : null
리턴 null

setCredentialsExpireAt() 공개 메소드

public setCredentialsExpireAt ( DateTime $date )
$date DateTime

setCredentialsExpired() 공개 메소드

public setCredentialsExpired ( $boolean )

setEmail() 공개 메소드

Set email.
public setEmail ( string $email )
$email string

setEmailCanonical() 공개 메소드

Set emailCanonical.
public setEmailCanonical ( string $emailCanonical )
$emailCanonical string

setEnabled() 공개 메소드

public setEnabled ( boolean $boolean )
$boolean boolean

setExpired() 공개 메소드

Sets this user to expired
public setExpired ( boolean $boolean ) : void
$boolean boolean
리턴 void

setExpiresAt() 공개 메소드

public setExpiresAt ( DateTime $date )
$date DateTime

setLastLogin() 공개 메소드

public setLastLogin ( DateTime $time )
$time DateTime

setLocked() 공개 메소드

public setLocked ( $boolean )

setPassword() 공개 메소드

Sets the hashed password.
public setPassword ( string $password ) : void
$password string
리턴 void

setPasswordRequestedAt() 공개 메소드

Set the timestamp that the user requested a password reset.
public setPasswordRequestedAt ( DateTime $date )
$date DateTime

setPlainPassword() 공개 메소드

public setPlainPassword ( $password )

setRoles() 공개 메소드

public setRoles ( array $roles )
$roles array

setSuperAdmin() 공개 메소드

Sets the super admin status
public setSuperAdmin ( boolean $boolean ) : void
$boolean boolean
리턴 void

setUsername() 공개 메소드

Set username.
public setUsername ( string $username )
$username string

setUsernameCanonical() 공개 메소드

Set usernameCanonical.
public setUsernameCanonical ( string $usernameCanonical )
$usernameCanonical string

프로퍼티 상세

$algorithm 보호되어 있는 프로퍼티

The algorithm to use for hashing
protected string $algorithm
리턴 string

$confirmationToken 보호되어 있는 프로퍼티

Random string sent to the user email address in order to verify it
protected string $confirmationToken
리턴 string

$createdAt 보호되어 있는 프로퍼티

protected DateTime $createdAt
리턴 DateTime

$credentialsExpireAt 보호되어 있는 프로퍼티

protected DateTime $credentialsExpireAt
리턴 DateTime

$credentialsExpired 보호되어 있는 프로퍼티

protected bool $credentialsExpired
리턴 boolean

$email 보호되어 있는 프로퍼티

protected string $email
리턴 string

$emailCanonical 보호되어 있는 프로퍼티

protected string $emailCanonical
리턴 string

$enabled 보호되어 있는 프로퍼티

protected bool $enabled
리턴 boolean

$expired 보호되어 있는 프로퍼티

protected bool $expired
리턴 boolean

$expiresAt 보호되어 있는 프로퍼티

protected DateTime $expiresAt
리턴 DateTime

$groups 보호되어 있는 프로퍼티

protected Collection,Doctrine\Common\Collections $groups
리턴 Doctrine\Common\Collections\Collection

$id 보호되어 있는 프로퍼티

protected $id

$lastLogin 보호되어 있는 프로퍼티

protected DateTime $lastLogin
리턴 DateTime

$locked 보호되어 있는 프로퍼티

protected bool $locked
리턴 boolean

$password 보호되어 있는 프로퍼티

Encrypted password. Must be persisted.
protected string $password
리턴 string

$passwordRequestedAt 보호되어 있는 프로퍼티

protected DateTime $passwordRequestedAt
리턴 DateTime

$plainPassword 보호되어 있는 프로퍼티

Plain password. Used for model validation. Must not be persisted.
protected string $plainPassword
리턴 string

$roles 보호되어 있는 프로퍼티

protected array $roles
리턴 array

$salt 보호되어 있는 프로퍼티

The salt to use for hashing
protected string $salt
리턴 string

$updatedAt 보호되어 있는 프로퍼티

protected DateTime $updatedAt
리턴 DateTime

$username 보호되어 있는 프로퍼티

protected string $username
리턴 string

$usernameCanonical 보호되어 있는 프로퍼티

protected string $usernameCanonical
리턴 string