Legend of the Green Dragon

AvatarRepository extends ServiceEntityRepository
in package
Uses Bio, Clan, Setting, EntityRepositoryTrait

Table of Contents

$repositoryHydrator  : mixed
__construct()  : mixed
blockCharacterBio()  : bool
Block a bio of user.
createTranslatebleQuery()  : Query
Create query for translate entity.
expelPlayersFromDeletedClan()  : int
Expel characters from a deleted clan.
extractEntity()  : array<string|int, mixed>
Extract values from an object with class methods.
findLikeName()  : array<string|int, mixed>
Get a list of characters with similar name.
getCharacterForPvp()  : array<string|int, mixed>|null
Get info of character for PvP.
getCharacterFromAcctidAndRank()  : object|null
Get information of character with acctId and rank less or equal to.
getCharacterNameFromAcctId()  : string
Get character's name from an account ID.
getCharactersBlockedBio()  : array<string|int, mixed>
Get all bios of characters that are blocked.
getCharactersUnblockedBio()  : array<string|int, mixed>
Get all bios of characters that NOT are blocked.
getClanLeadersCount()  : int
Count leaders of a clan.
getClanMembershipDetails()  : array<string|int, mixed>|null
Get details of membership of clan.
getClanMembershipList()  : array<string|int, mixed>
Get list of membership of clan.
getLeadersFromClan()  : array<string|int, mixed>
Get leaders of clan exclude select acctId.
getPaginator()  : Paginator
Get a pagination for a result.
getQueryBuilder()  : QueryBuilder
Get a instance of query builder.
getViableLeaderForClan()  : array<string|int, mixed>|null
Get one member of clan that can be promote to leader.
hydrateEntity()  : object
Hydrate an object by populating getter/setter methods.
movingPlayersToLocation()  : bool
Moving players to new location.
setNewClanLeader()  : int
Set new leader for a clan.
unblockCharacterBio()  : bool
Unblock a bio of user.
getHydrator()  : ClassMethodsHydrator
Get Hydrator instance.
blockUnblockCharacterBio()  : bool

Properties

Methods

__construct()

public __construct(ManagerRegistry $registry) : mixed
Parameters
$registry : ManagerRegistry
Return values
mixed

blockCharacterBio()

Block a bio of user.

public blockCharacterBio(int $char) : bool
Parameters
$char : int
Return values
bool

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

expelPlayersFromDeletedClan()

Expel characters from a deleted clan.

public expelPlayersFromDeletedClan(int $clanId) : int
Parameters
$clanId : int
Return values
int

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>

findLikeName()

Get a list of characters with similar name.

public findLikeName(string $name[, int $limit = 100 ]) : array<string|int, mixed>

Search by character name and account login.

Parameters
$name : string
$limit : int = 100
Return values
array<string|int, mixed>

getCharacterForPvp()

Get info of character for PvP.

public getCharacterForPvp(int $characterId) : array<string|int, mixed>|null
Parameters
$characterId : int
Return values
array<string|int, mixed>|null

getCharacterFromAcctidAndRank()

Get information of character with acctId and rank less or equal to.

public getCharacterFromAcctidAndRank(int $acctId, int $rank) : object|null
Parameters
$acctId : int
$rank : int
Return values
object|null

getCharacterNameFromAcctId()

Get character's name from an account ID.

public getCharacterNameFromAcctId(int $acctId) : string
Parameters
$acctId : int
Return values
string

getCharactersBlockedBio()

Get all bios of characters that are blocked.

public getCharactersBlockedBio() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCharactersUnblockedBio()

Get all bios of characters that NOT are blocked.

public getCharactersUnblockedBio() : array<string|int, mixed>
Return values
array<string|int, mixed>

getClanLeadersCount()

Count leaders of a clan.

public getClanLeadersCount(int $clanId) : int
Parameters
$clanId : int
Return values
int

getClanMembershipDetails()

Get details of membership of clan.

public getClanMembershipDetails(int $clanId) : array<string|int, mixed>|null
Parameters
$clanId : int
Return values
array<string|int, mixed>|null

getClanMembershipList()

Get list of membership of clan.

public getClanMembershipList(int $clanId) : array<string|int, mixed>
Parameters
$clanId : int
Return values
array<string|int, mixed>

getLeadersFromClan()

Get leaders of clan exclude select acctId.

public getLeadersFromClan(int $clanId, int $acctId) : array<string|int, mixed>
Parameters
$clanId : int
$acctId : int

Exclude this acctId

Return values
array<string|int, mixed>

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

getViableLeaderForClan()

Get one member of clan that can be promote to leader.

public getViableLeaderForClan(int $clanId, int $acctId) : array<string|int, mixed>|null
Parameters
$clanId : int
$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

movingPlayersToLocation()

Moving players to new location.

public movingPlayersToLocation(string $from, string $to) : bool
Parameters
$from : string
$to : string
Return values
bool

setNewClanLeader()

Set new leader for a clan.

public setNewClanLeader(int $characterId) : int
Parameters
$characterId : int
Return values
int

unblockCharacterBio()

Unblock a bio of user.

public unblockCharacterBio(int $char) : bool
Parameters
$char : int
Return values
bool

getHydrator()

Get Hydrator instance.

protected getHydrator() : ClassMethodsHydrator
Return values
ClassMethodsHydrator

blockUnblockCharacterBio()

private blockUnblockCharacterBio(int $char, string $block, mixed $date) : bool
Parameters
$char : int
$block : string
$date : mixed
Return values
bool

Search results