UserRepository
extends ServiceEntityRepository
in package
implements
PasswordUpgraderInterface
Uses
EntityRepositoryTrait, Bans, Avatar, Clan, Login, Superuser, User
Interfaces, Classes, Traits and Enums
- PasswordUpgraderInterface
Table of Contents
- $repositoryHydrator : mixed
- __construct() : mixed
- bansSearchAccts() : Paginator|null
- Search accounts.
- createTranslatebleQuery() : Query
- Create query for translate entity.
- extractEntity() : array<string|int, mixed>
- Extract values from an object with class methods.
- getAccountsWithEqualId() : array<string|int, mixed>
- Get accounts with identical ID.
- getAccountsWithSimilarIp() : array<string|int, mixed>
- Get accounts with similar IP.
- getAcctIdFromLogin() : int
- Get acctid from login.
- getAcctPrefs() : array<string|int, mixed>
- Get prefs of account.
- getBasicInfoOfAccount() : array<string|int, mixed>
- Get a basic information of account for ban.
- getCharacterInfoFromAcctId() : array<string|int, mixed>
- Get information of character for bio page.
- getCharacterNameFromAcctId() : string
- Get character name from account ID.
- getCharacterNewsFromAcctId() : array<string|int, mixed>
- Get recent news from account and character.
- getClanAuthorNameOfMotdDescFromAcctId() : array<string|int, mixed>|null
- Get author name for description and motd.
- getCountAcctsOnline() : int
- Get total accounts that are online.
- getListAccountsOnline() : array<string|int, mixed>
- Get list of accounts online.
- getLoginSuperuserWithPermit() : array<string|int, mixed>|null
- Superuser login.
- getPaginator() : Paginator
- Get a pagination for a result.
- getQueryBuilder() : QueryBuilder
- Get a instance of query builder.
- getSuperuserCountWithPermit() : int
- Get count of superusers who have the given permission.
- getSuperuserWithPermit() : array<string|int, mixed>
- Get all superusers who have the given permission.
- getUserById() : array<string|int, mixed>|null
- Get data of user by ID of account.
- hydrateEntity() : object
- Hydrate an object by populating getter/setter methods.
- logoutAffectedAccounts() : int
- Log out affected players for a ban.
- logoutInactiveAccounts() : bool
- Logout inactive accounts.
- processLoginGetAcctData() : array<string|int, mixed>
- Process login and get data.
- upgradePassword() : never
- Used to upgrade (rehash) the user's password automatically over time.
- userSearchAccounts() : Paginator|null
- Search users.
- getHydrator() : ClassMethodsHydrator
- Get Hydrator instance.
- processUserData() : array<string|int, mixed>
- Private function to process data of user.
Properties
$repositoryHydrator
protected
mixed
$repositoryHydrator
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
Return values
mixed —bansSearchAccts()
Search accounts.
public
bansSearchAccts(string $search, string $order, int $page) : Paginator|null
Parameters
- $search : string
- $order : string
- $page : int
Return values
Paginator|null —createTranslatebleQuery()
Create query for translate entity.
public
createTranslatebleQuery(string $dql) : Query
Parameters
- $dql : string
-
Note: If pass a "Doctrine\ORM\QueryBuilder" auto-get a DQL string
Return values
Query —extractEntity()
Extract values from an object with class methods.
public
extractEntity(object|array<string|int, mixed> $object) : array<string|int, mixed>
Parameters
- $object : object|array<string|int, mixed>
Return values
array<string|int, mixed> —getAccountsWithEqualId()
Get accounts with identical ID.
public
getAccountsWithEqualId(string $uniqueId) : array<string|int, mixed>
Parameters
- $uniqueId : string
Return values
array<string|int, mixed> —getAccountsWithSimilarIp()
Get accounts with similar IP.
public
getAccountsWithSimilarIp(string $ip, int $accountId) : array<string|int, mixed>
Parameters
- $ip : string
- $accountId : int
Return values
array<string|int, mixed> —getAcctIdFromLogin()
Get acctid from login.
public
getAcctIdFromLogin(string $login) : int
Parameters
- $login : string
Return values
int —getAcctPrefs()
Get prefs of account.
public
getAcctPrefs(int $acctId) : array<string|int, mixed>
Parameters
- $acctId : int
Return values
array<string|int, mixed> —getBasicInfoOfAccount()
Get a basic information of account for ban.
public
getBasicInfoOfAccount(int $acctId) : array<string|int, mixed>
Parameters
- $acctId : int
Return values
array<string|int, mixed> —getCharacterInfoFromAcctId()
Get information of character for bio page.
public
getCharacterInfoFromAcctId(int $account) : array<string|int, mixed>
Parameters
- $account : int
Return values
array<string|int, mixed> —getCharacterNameFromAcctId()
Get character name from account ID.
public
getCharacterNameFromAcctId(int $account) : string
Parameters
- $account : int
Return values
string —getCharacterNewsFromAcctId()
Get recent news from account and character.
public
getCharacterNewsFromAcctId(int $account) : array<string|int, mixed>
Parameters
- $account : int
Return values
array<string|int, mixed> —getClanAuthorNameOfMotdDescFromAcctId()
Get author name for description and motd.
public
getClanAuthorNameOfMotdDescFromAcctId(int $motdAuthor, int $descAuthor) : array<string|int, mixed>|null
Parameters
- $motdAuthor : int
- $descAuthor : int
Return values
array<string|int, mixed>|null —getCountAcctsOnline()
Get total accounts that are online.
public
getCountAcctsOnline(int $timeout) : int
Parameters
- $timeout : int
Return values
int —getListAccountsOnline()
Get list of accounts online.
public
getListAccountsOnline() : array<string|int, mixed>
Return values
array<string|int, mixed> —getLoginSuperuserWithPermit()
Superuser login.
public
getLoginSuperuserWithPermit(string $name, string $password, int $permit) : array<string|int, mixed>|null
Parameters
- $name : string
- $password : string
- $permit : int
Return values
array<string|int, mixed>|null —getPaginator()
Get a pagination for a result.
public
getPaginator(QueryBuilder $query[, int $page = 1 ][, int $perPage = 25 ][, int $resultType = DoctrineAdapter::RESULT_ARRAY ]) : Paginator
Parameters
- $query : QueryBuilder
- $page : int = 1
- $perPage : int = 25
- $resultType : int = DoctrineAdapter::RESULT_ARRAY
Return values
Paginator —getQueryBuilder()
Get a instance of query builder.
public
getQueryBuilder() : QueryBuilder
Return values
QueryBuilder —getSuperuserCountWithPermit()
Get count of superusers who have the given permission.
public
getSuperuserCountWithPermit(int $permit) : int
Parameters
- $permit : int
Return values
int —getSuperuserWithPermit()
Get all superusers who have the given permission.
public
getSuperuserWithPermit(int $permit) : array<string|int, mixed>
Parameters
- $permit : int
Return values
array<string|int, mixed> —getUserById()
Get data of user by ID of account.
public
getUserById(int $acctId) : array<string|int, mixed>|null
Parameters
- $acctId : int
Return values
array<string|int, mixed>|null —hydrateEntity()
Hydrate an object by populating getter/setter methods.
public
hydrateEntity(array<string|int, mixed> $data[, object|null $entity = null ]) : object
Parameters
- $data : array<string|int, mixed>
- $entity : object|null = null
Return values
object —logoutAffectedAccounts()
Log out affected players for a ban.
public
logoutAffectedAccounts(string $ip, string $id, string $type) : int
Parameters
- $ip : string
- $id : string
- $type : string
Return values
int —logoutInactiveAccounts()
Logout inactive accounts.
public
logoutInactiveAccounts(int $timeout) : bool
Parameters
- $timeout : int
Return values
bool —processLoginGetAcctData()
Process login and get data.
public
processLoginGetAcctData(string $login, string $password) : array<string|int, mixed>
Parameters
- $login : string
- $password : string
Return values
array<string|int, mixed> —upgradePassword()
Used to upgrade (rehash) the user's password automatically over time.
public
upgradePassword(UserInterface $user, string $newEncodedPassword) : never
Parameters
- $user : UserInterface
- $newEncodedPassword : string
Return values
never —userSearchAccounts()
Search users.
public
userSearchAccounts(string $search, string $order, int $page) : Paginator|null
Parameters
- $search : string
- $order : string
- $page : int
Return values
Paginator|null —getHydrator()
Get Hydrator instance.
protected
getHydrator() : ClassMethodsHydrator
Return values
ClassMethodsHydrator —processUserData()
Private function to process data of user.
private
processUserData(array<string|int, mixed> $data) : array<string|int, mixed>
Parameters
- $data : array<string|int, mixed>