PHP 인터페이스 FOS\UserBundle\Model\UserManagerInterface

All changes to users should happen through this interface. The class also contains ACL annotations which will only work if you have the SecurityExtraBundle installed, otherwise they will simply be ignored.
저자: Gordon Franke ([email protected])
저자: Thibault Duplessis ([email protected])
저자: Johannes M. Schmitt ([email protected])
파일 보기 프로젝트 열기: KnpLabs/KnpUserBundle 0 사용 예제들

공개 메소드들

메소드 설명
createUser ( ) : User Creates an empty user instance
deleteUser ( FOS\UserBundle\Model\UserInterface $user ) : void Deletes a user
findUserBy ( array $criteria ) : User Finds one user by the given criteria
findUserByConfirmationToken ( string $token ) : User Find a user by its confirmationToken
findUserByEmail ( string $email ) : User Find a user by its email
findUserByUsername ( string $username ) : User Find a user by its username
findUserByUsernameOrEmail ( string $usernameOrEmail ) : User Find a user by its username or email
findUsers ( ) : Traversable Returns a collection with all user instances
getClass ( ) : string Returns the user's fully qualified class name
updateCanonicalFields ( FOS\UserBundle\Model\UserInterface $user ) : void Updates the canonical username and email fields for a user
updatePassword ( FOS\UserBundle\Model\UserInterface $user ) : void Updates a user password if a plain password is set
updateUser ( FOS\UserBundle\Model\UserInterface $user ) : void Updates a user
validateUnique ( FOS\UserBundle\Model\UserInterface $value, Constraint $constraint ) : boolean Checks the uniqueness of the given fields, returns true if its unique

메소드 상세

createUser() 공개 메소드

Creates an empty user instance
public createUser ( ) : User
리턴 User

deleteUser() 공개 메소드

Deletes a user
public deleteUser ( FOS\UserBundle\Model\UserInterface $user ) : void
$user FOS\UserBundle\Model\UserInterface
리턴 void

findUserBy() 공개 메소드

Finds one user by the given criteria
public findUserBy ( array $criteria ) : User
$criteria array
리턴 User

findUserByConfirmationToken() 공개 메소드

Find a user by its confirmationToken
public findUserByConfirmationToken ( string $token ) : User
$token string
리턴 User or null if user does not exist

findUserByEmail() 공개 메소드

Find a user by its email
public findUserByEmail ( string $email ) : User
$email string
리턴 User or null if user does not exist

findUserByUsername() 공개 메소드

Find a user by its username
public findUserByUsername ( string $username ) : User
$username string
리턴 User or null if user does not exist

findUserByUsernameOrEmail() 공개 메소드

Find a user by its username or email
public findUserByUsernameOrEmail ( string $usernameOrEmail ) : User
$usernameOrEmail string
리턴 User or null if user does not exist

findUsers() 공개 메소드

Returns a collection with all user instances
public findUsers ( ) : Traversable
리턴 Traversable

getClass() 공개 메소드

Returns the user's fully qualified class name
public getClass ( ) : string
리턴 string

updateCanonicalFields() 공개 메소드

Updates the canonical username and email fields for a user
public updateCanonicalFields ( FOS\UserBundle\Model\UserInterface $user ) : void
$user FOS\UserBundle\Model\UserInterface
리턴 void

updatePassword() 공개 메소드

Updates a user password if a plain password is set
public updatePassword ( FOS\UserBundle\Model\UserInterface $user ) : void
$user FOS\UserBundle\Model\UserInterface
리턴 void

updateUser() 공개 메소드

Updates a user
public updateUser ( FOS\UserBundle\Model\UserInterface $user ) : void
$user FOS\UserBundle\Model\UserInterface
리턴 void

validateUnique() 공개 메소드

Checks the uniqueness of the given fields, returns true if its unique
public validateUnique ( FOS\UserBundle\Model\UserInterface $value, Constraint $constraint ) : boolean
$value FOS\UserBundle\Model\UserInterface
$constraint Symfony\Component\Validator\Constraint
리턴 boolean