BlogCommentManager
class BlogCommentManager implements JQGridInterface, BasicEntityManagerInterface
Class BlogCommentManager is injected as alligator.blog_comment_manager service. BlogCommentManager handles the logic for managed entity.
Traits
Properties
| protected BlogCommentRepository | $repository | ||
| protected BlogCommentContainer | $container |
Methods
No description
No description
No description
Find blog comment by id
Check for all preconditions, create references to all foreign entities and persist new blog comment
Check for all preconditions, create references to all foreign entities and merge blog comment
Remove blog comment for provided array of ids
Find comments for provided post slug
Count number of comments for post by its slug
Details
in JQGridManagerTrait at line 26
mixed
searchForJQGRID(array $searchParams, array $sortParams = array(), array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 40
mixed
findAllForJQGRID(int $page, int $offset, array $sortParams, array $additionalParams = array(), JQGridWrapper $jqGridWrapper = null)
in JQGridManagerTrait at line 53
mixed
getCountForJQGRID(array|null $searchParams = null, array|null $sortParams = null, array|null $additionalParams = array(), JQGridWrapper|null $jqGridWrapper = null)
at line 41
__construct(BlogCommentRepository $repository, BlogCommentContainer $container)
at line 55
array
findOneByIdCustom(int $id)
Find blog comment by id
at line 69
mixed
saveComment(BlogComment $blogComment)
Check for all preconditions, create references to all foreign entities and persist new blog comment
at line 82
bool
editBlogComment(BlogComment $blogComment)
Check for all preconditions, create references to all foreign entities and merge blog comment
at line 95
array
deleteBlogComments(array $blogCommentsIDs)
Remove blog comment for provided array of ids
at line 111
bool
updateObjects(User $user)
Update blog comment fields for specific User
at line 123
array
findCommentsForPost(string $slug, int $page)
Find comments for provided post slug
at line 137
array
countCommentsForPost(string $slug)
Count number of comments for post by its slug