class UserInfoRepository (View source)

Properties

protected $entityManager
protected $application
protected ObjectRepository $repository

Methods

__construct(Application $application, EntityManagerInterface $entityManager)

No description

UserInfo|null
getByID(int $uID)

Returns the UserInfo object for a give user's uID.

UserInfo|null
getByName(string $uName)

Returns the UserInfo object for a give user's username.

getByUserName($uName) deprecated

No description

UserInfo|null
getByEmail(string $uEmail)

Returns the UserInfo object for a give user's email address.

getByUserEntity(User $entity)

Get a UserInfo object from a user entity

all(bool $activeOnly = false)

Get all users

UserInfo|null
getByValidationHash(string $uHash, bool $unredeemedHashesOnly = true)

No description

UserInfo|null
get($where, $var)

Resolve an single entity by

ObjectRepository
getRepository()

Resolve the repository instance

Details

__construct(Application $application, EntityManagerInterface $entityManager)

No description

Parameters

Application $application
EntityManagerInterface $entityManager

UserInfo|null getByID(int $uID)

Returns the UserInfo object for a give user's uID.

Parameters

int $uID

Return Value

UserInfo|null

UserInfo|null getByName(string $uName)

Returns the UserInfo object for a give user's username.

Parameters

string $uName

Return Value

UserInfo|null

getByUserName($uName) deprecated

deprecated Use ->getByName($name) instead

No description

Parameters

$uName

UserInfo|null getByEmail(string $uEmail)

Returns the UserInfo object for a give user's email address.

Parameters

string $uEmail

Return Value

UserInfo|null

UserInfo getByUserEntity(User $entity)

Get a UserInfo object from a user entity

Parameters

User $entity

Return Value

UserInfo

UserInfo[] all(bool $activeOnly = false)

Get all users

Parameters

bool $activeOnly

Only return active users

Return Value

UserInfo[]

UserInfo|null getByValidationHash(string $uHash, bool $unredeemedHashesOnly = true)

No description

Parameters

string $uHash
bool $unredeemedHashesOnly

Return Value

UserInfo|null

private UserInfo|null get($where, $var)

Resolve an single entity by

Parameters

$where
$var

Return Value

UserInfo|null

protected ObjectRepository getRepository()

Resolve the repository instance

Return Value

ObjectRepository