PHP Класс Sulu\Bundle\SecurityBundle\Entity\UserRepository

Наследование: extends Sulu\Component\Persistence\Repository\ORM\EntityRepository, implements Sulu\Component\Security\Authentication\UserRepositoryInterface, use trait Sulu\Component\Persistence\Repository\ORM\OrderByTrait
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
findAllUsersByRoleId ( integer $roleId ) : array Finds all users for the role with the given id.
findUserByContact ( $id ) : array Searches for a user with a specific contact id.
findUserByEmail ( string $email ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for a given email.
findUserById ( $id )
findUserByIdentifier ( $identifier )
findUserBySystem ( string $system ) : User[] Returns all users with the given system including their contacts.
findUserByToken ( string $token ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for a given password-reset-token.
findUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface Finds a user for the given username.
findUserWithSecurityById ( $id )
findUsersByAccount ( $accountId, $sortBy = [] )
getUsernameByApiKey ( string $apiKey ) : string returns username for given apiKey.

Приватные методы

Метод Описание
getUserWithPermissionsQuery ( ) : Doctrine\ORM\QueryBuilder Returns the query for the user with the joins for retrieving the permissions. Especially useful for security related queries.

Описание методов

findAllUsersByRoleId() публичный Метод

Finds all users for the role with the given id.
public findAllUsersByRoleId ( integer $roleId ) : array
$roleId integer
Результат array

findUserByContact() публичный Метод

Searches for a user with a specific contact id.
public findUserByContact ( $id ) : array
$id
Результат array

findUserByEmail() публичный Метод

Finds a user for a given email.
public findUserByEmail ( string $email ) : Symfony\Component\Security\Core\User\UserInterface
$email string The email-address
Результат Symfony\Component\Security\Core\User\UserInterface

findUserById() публичный Метод

public findUserById ( $id )

findUserByIdentifier() публичный Метод

public findUserByIdentifier ( $identifier )

findUserBySystem() публичный Метод

Returns all users with the given system including their contacts.
public findUserBySystem ( string $system ) : User[]
$system string
Результат User[]

findUserByToken() публичный Метод

Finds a user for a given password-reset-token.
public findUserByToken ( string $token ) : Symfony\Component\Security\Core\User\UserInterface
$token string the reset-token
Результат Symfony\Component\Security\Core\User\UserInterface

findUserByUsername() публичный Метод

This method throws UsernameNotFoundException if the user is not found.
public findUserByUsername ( string $username ) : Symfony\Component\Security\Core\User\UserInterface
$username string The username
Результат Symfony\Component\Security\Core\User\UserInterface

findUserWithSecurityById() публичный Метод

public findUserWithSecurityById ( $id )

findUsersByAccount() публичный Метод

public findUsersByAccount ( $accountId, $sortBy = [] )

getUsernameByApiKey() публичный Метод

returns username for given apiKey.
public getUsernameByApiKey ( string $apiKey ) : string
$apiKey string userId
Результат string