PHP Class Ojs\UserBundle\Entity\UserRepository

Inheritance: extends Doctrine\ORM\EntityRepository, implements Symfony\Component\Security\Core\User\UserProviderInterface
Show file Open project: ojs/ojs

Public Methods

Method Description
findUsersByJournalRole ( array $roles, Journal $journal = null ) : User[]
getCountBy ( $field, $value ) : mixed Return user count by condition
hasJournalRole ( User $user, Role $role, Journal $journal ) : boolean
loadUserByUsername ( string $username ) : User
refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
searchJournalUser ( $searchQuery, Journal $journal, $limit, array $roles = [] ) : array | User[]
supportsClass ( $class )

Method Details

findUsersByJournalRole() public method

public findUsersByJournalRole ( array $roles, Journal $journal = null ) : User[]
$roles array
$journal Ojs\JournalBundle\Entity\Journal
return User[]

getCountBy() public method

Return user count by condition
public getCountBy ( $field, $value ) : mixed
$field
$value
return mixed

hasJournalRole() public method

public hasJournalRole ( User $user, Role $role, Journal $journal ) : boolean
$user User
$role Role
$journal Ojs\JournalBundle\Entity\Journal
return boolean

loadUserByUsername() public method

public loadUserByUsername ( string $username ) : User
$username string
return User

refreshUser() public method

public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface

searchJournalUser() public method

public searchJournalUser ( $searchQuery, Journal $journal, $limit, array $roles = [] ) : array | User[]
$searchQuery
$journal Ojs\JournalBundle\Entity\Journal
$limit
$roles array
return array | User[]

supportsClass() public method

public supportsClass ( $class )