Legend of the Green Dragon

Commentary
in package
Uses Command

Table of Contents

TEXT_DOMAIN  = 'app_commentary'
$cache  : mixed
$censor  : mixed
$doctrine  : mixed
$flashBag  : mixed
$hook  : mixed
$normalizer  : mixed
$repository  : CommentaryRepository
Repository of commentary.
$translator  : mixed
$settings  : mixed
__construct()  : mixed
analizeSpecialCommands()  : bool
Analize special commands that save to data base.
cleanComment()  : string
Clean comment for safety insert in DB.
commentaryLocs()  : array<string|int, mixed>
All comentary sections.
getComments()  : Paginator
Get comments in the section.
getCommentsModerate()  : Paginator
Get comments for moderate.
getRepository()  : Commentary
Set instance of Doctrine.
getTranslationDomain()  : string
moderateComments()  : bool
Moderate comments, Hide/Unhide.
processCommands()  : array<string|int, mixed>
Process commands for comentary.
saveComment()  : bool
Process save comment.
getList()  : Paginator
Get list of comments.
injectComment()  : bool
Save data in data base.
processCoreCommands()  : bool
processCommandGrem()  : bool
Command GREEM: Deletes the user's last written comment, only if no more than 3 minutes have passed.

Constants

TEXT_DOMAIN

public mixed TEXT_DOMAIN = 'app_commentary'

Properties

Methods

__construct()

public __construct(TranslatorInterface $translator, CacheInterface $appCache, Censor $censor, EventDispatcherInterface $hook, FlashBagInterface $flashBag, EntityManagerInterface $doctrine, DenormalizerInterface $normalizer, Settings $settings) : mixed
Parameters
$translator : TranslatorInterface
$appCache : CacheInterface
$censor : Censor
$hook : EventDispatcherInterface
$flashBag : FlashBagInterface
$doctrine : EntityManagerInterface
$normalizer : DenormalizerInterface
$settings : Settings
Return values
mixed

analizeSpecialCommands()

Analize special commands that save to data base.

public analizeSpecialCommands(array<string|int, mixed> &$data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

cleanComment()

Clean comment for safety insert in DB.

public cleanComment(string|null $comment) : string
Parameters
$comment : string|null
Return values
string

commentaryLocs()

All comentary sections.

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

getComments()

Get comments in the section.

public getComments(string $section[, int $page = 1 ][, int $limit = 25 ]) : Paginator
Parameters
$section : string
$page : int = 1
$limit : int = 25
Return values
Paginator

getCommentsModerate()

Get comments for moderate.

public getCommentsModerate() : Paginator
Return values
Paginator

getRepository()

Set instance of Doctrine.

public getRepository() : Commentary
Return values
Commentary

getTranslationDomain()

public getTranslationDomain() : string
Return values
string

moderateComments()

Moderate comments, Hide/Unhide.

public moderateComments(array<string|int, mixed>|null $post) : bool
Parameters
$post : array<string|int, mixed>|null
Return values
bool

processCommands()

Process commands for comentary.

public processCommands(array<string|int, mixed> &$data) : array<string|int, mixed>
Parameters
$data : array<string|int, mixed>
Return values
array<string|int, mixed>

saveComment()

Process save comment.

public saveComment(array<string|int, mixed> $post) : bool
Parameters
$post : array<string|int, mixed>
Return values
bool

getList()

Get list of comments.

protected getList(string|null $section[, int $page = 1 ][, int $limit = 25 ]) : Paginator
Parameters
$section : string|null
$page : int = 1
$limit : int = 25
Return values
Paginator

injectComment()

Save data in data base.

protected injectComment(array<string|int, mixed> $data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

processCoreCommands()

protected processCoreCommands(array<string|int, mixed> &$data) : bool
Parameters
$data : array<string|int, mixed>
Return values
bool

Returns whether the command was processed.

processCommandGrem()

Command GREEM: Deletes the user's last written comment, only if no more than 3 minutes have passed.

private processCommandGrem() : bool
Return values
bool

Search results