Метод | Описание | |
---|---|---|
createUser ( ) : |
Creates an empty user instance | |
deleteUser ( FOS\UserBundle\Model\UserInterface $user ) : void | Deletes a user | |
findUserBy ( array $criteria ) : |
Finds one user by the given criteria | |
findUserByConfirmationToken ( string $token ) : |
Find a user by its confirmationToken | |
findUserByEmail ( string $email ) : |
Find a user by its email | |
findUserByUsername ( string $username ) : |
Find a user by its username | |
findUserByUsernameOrEmail ( string $usernameOrEmail ) : |
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, |
Checks the uniqueness of the given fields, returns true if its unique |
public createUser ( ) : |
||
Результат |
public deleteUser ( FOS\UserBundle\Model\UserInterface $user ) : void | ||
$user | FOS\UserBundle\Model\UserInterface | |
Результат | void |
public findUserBy ( array $criteria ) : |
||
$criteria | array | |
Результат |
public findUserByConfirmationToken ( string $token ) : |
||
$token | string | |
Результат | or null if user does not exist |
public findUserByEmail ( string $email ) : |
||
string | ||
Результат | or null if user does not exist |
public findUserByUsername ( string $username ) : |
||
$username | string | |
Результат | or null if user does not exist |
public findUserByUsernameOrEmail ( string $usernameOrEmail ) : |
||
$usernameOrEmail | string | |
Результат | or null if user does not exist |
public findUsers ( ) : Traversable | ||
Результат | Traversable |
public updateCanonicalFields ( FOS\UserBundle\Model\UserInterface $user ) : void | ||
$user | FOS\UserBundle\Model\UserInterface | |
Результат | void |
public updatePassword ( FOS\UserBundle\Model\UserInterface $user ) : void | ||
$user | FOS\UserBundle\Model\UserInterface | |
Результат | void |
public updateUser ( FOS\UserBundle\Model\UserInterface $user ) : void | ||
$user | FOS\UserBundle\Model\UserInterface | |
Результат | void |
public validateUnique ( FOS\UserBundle\Model\UserInterface $value, |
||
$value | FOS\UserBundle\Model\UserInterface | |
$constraint | ||
Результат | boolean |