MailRepository
extends ServiceEntityRepository
in package
implements
RepositoryBackupInterface
Uses
Backup, Clan, EntityRepositoryTrait
Interfaces, Classes, Traits and Enums
Table of Contents
- $repositoryHydrator : mixed
- __construct() : mixed
- backupDeleteDataFromAccount() : int
- Delete mail of account.
- backupGetDataFromAccount() : array<string|int, mixed>
- Get all mail to account.
- countInboxOfCharacter() : int
- Count messages in inbox of character.
- createTranslatebleQuery() : Query
- Create query for translate entity.
- deleteBulkMail() : int
- Delete mail in bulk by ID.
- deleteExpireMail() : int
- Delte old mails in data base.
- deleteMailFromSystemBySubj() : int
- Delete mail from system by subject.
- extractEntity() : array<string|int, mixed>
- Extract values from an object with class methods.
- getCharacterMail() : array<string|int, mixed>
- Get list of messages for a character.
- getCharacterNameFromAcctId() : string
- Get character's name from an account ID.
- getCountMailOfCharacter() : array<string|int, mixed>
- Get a count of see and unsee mail.
- getMailSenderNames() : array<string|int, mixed>
- Get a names of senders and count msgs.
- getNextPreviousMail() : array<string|int, mixed>
- Get next and previous IDs of current mail.
- getPaginator() : Paginator
- Get a pagination for a result.
- getQueryBuilder() : QueryBuilder
- Get a instance of query builder.
- hydrateEntity() : object
- Hydrate an object by populating getter/setter methods.
- replyToMessage() : array<string|int, mixed>
- Get info of the reply message.
- getHydrator() : ClassMethodsHydrator
- Get Hydrator instance.
Properties
$repositoryHydrator
protected
mixed
$repositoryHydrator
Methods
__construct()
public
__construct(ManagerRegistry $registry) : mixed
Parameters
- $registry : ManagerRegistry
Return values
mixed —backupDeleteDataFromAccount()
Delete mail of account.
public
backupDeleteDataFromAccount(int $accountId) : int
Parameters
- $accountId : int
Return values
int —backupGetDataFromAccount()
Get all mail to account.
public
backupGetDataFromAccount(int $accountId) : array<string|int, mixed>
Parameters
- $accountId : int
Return values
array<string|int, mixed> —countInboxOfCharacter()
Count messages in inbox of character.
public
countInboxOfCharacter(int $acctId, int $onlyUnseen) : int
Parameters
- $acctId : int
- $onlyUnseen : int
Return values
int —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 —deleteBulkMail()
Delete mail in bulk by ID.
public
deleteBulkMail(array<string|int, mixed> $ids, int $userId) : int
Parameters
- $ids : array<string|int, mixed>
- $userId : int
Return values
int —deleteExpireMail()
Delte old mails in data base.
public
deleteExpireMail(int $expire) : int
Parameters
- $expire : int
Return values
int —deleteMailFromSystemBySubj()
Delete mail from system by subject.
public
deleteMailFromSystemBySubj(string $subject, int $toId) : int
Parameters
- $subject : string
- $toId : 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> —getCharacterMail()
Get list of messages for a character.
public
getCharacterMail(int $acctId, string $order, int $direction) : array<string|int, mixed>
Parameters
- $acctId : int
- $order : string
- $direction : int
Return values
array<string|int, mixed> —getCharacterNameFromAcctId()
Get character's name from an account ID.
public
getCharacterNameFromAcctId(int $acctId) : string
Parameters
- $acctId : int
Return values
string —getCountMailOfCharacter()
Get a count of see and unsee mail.
public
getCountMailOfCharacter(int $acctId) : array<string|int, mixed>
Parameters
- $acctId : int
Return values
array<string|int, mixed> —getMailSenderNames()
Get a names of senders and count msgs.
public
getMailSenderNames(int $acctId) : array<string|int, mixed>
Parameters
- $acctId : int
Return values
array<string|int, mixed> —getNextPreviousMail()
Get next and previous IDs of current mail.
public
getNextPreviousMail(int $mailId, int $acctId) : array<string|int, mixed>
Parameters
- $mailId : int
- $acctId : int
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 —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 —replyToMessage()
Get info of the reply message.
public
replyToMessage(int $msgId, int $acct) : array<string|int, mixed>
Parameters
- $msgId : int
- $acct : int
Return values
array<string|int, mixed> —getHydrator()
Get Hydrator instance.
protected
getHydrator() : ClassMethodsHydrator