CommentaryRepository
extends ServiceEntityRepository
in package
implements
RepositoryBackupInterface
Uses
Backup, EntityRepositoryTrait
Interfaces, Classes, Traits and Enums
Table of Contents
- $repositoryHydrator : mixed
- $translator : mixed
- __construct() : mixed
- backupDeleteDataFromAccount() : int
- Delete comments of account.
- backupGetDataFromAccount() : array<string|int, mixed>
- Get all mail to account.
- createTranslatebleQuery() : Query
- Create query for translate entity.
- deleteExpireComments() : int
- Delte old comments in data base.
- extractEntity() : array<string|int, mixed>
- Extract values from an object with class methods.
- getPaginator() : Paginator
- Get a pagination for a result.
- getPublishedSections() : array<string|int, mixed>
- Get all sections in comentary.
- getQueryBuilder() : QueryBuilder
- Get a instance of query builder.
- hydrateEntity() : object
- Hydrate an object by populating getter/setter methods.
- moderateComments() : bool
- Hide/Unhide comments.
- saveComment() : bool
- Save comment to data base.
- getHydrator() : ClassMethodsHydrator
- Get Hydrator instance.
Properties
$repositoryHydrator
protected
mixed
$repositoryHydrator
$translator
private
mixed
$translator
Methods
__construct()
public
__construct(ManagerRegistry $registry, TranslatorInterface $translator) : mixed
Parameters
- $registry : ManagerRegistry
- $translator : TranslatorInterface
Return values
mixed —backupDeleteDataFromAccount()
Delete comments 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> —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 —deleteExpireComments()
Delte old comments in data base.
public
deleteExpireComments(int $expire) : int
Parameters
- $expire : 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> —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 —getPublishedSections()
Get all sections in comentary.
public
getPublishedSections() : array<string|int, mixed>
Return values
array<string|int, mixed> —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 —moderateComments()
Hide/Unhide comments.
public
moderateComments(array<string|int, mixed> $post) : bool
Parameters
- $post : array<string|int, mixed>
Return values
bool —saveComment()
Save comment to data base.
public
saveComment(Commentary $commentary) : bool
Parameters
- $commentary : Commentary
Return values
bool —getHydrator()
Get Hydrator instance.
protected
getHydrator() : ClassMethodsHydrator