CommentManager
class CommentManager implements CommentManagerInterface, BasicEntityManagerInterface
Class CommentManager is injected as alligator.comment_manager service. CommentManager handles the logic for entity.
Properties
| protected CommentRepository | $repository | ||
| protected CommentEventContainer | $eventContainer |
Methods
__construct(CommentRepository $repository, CommentEventContainer $eventContainer)
CommentManager constructor.
array
findAllComments()
No description
mixed
findAllCommentsLimited(int $limit)
Find provided($limit) number of comments(as array)
bool
changeCommentStatuses(array $array, int $ticketId)
Change status of all provided comments to "seen"
array
findAllCommentsById(int $id)
Find all comments for provided ticket id
mixed
getTicketObjectById(int $ticketId)
Find ticket(as object) for provided id
Details
at line 39
__construct(CommentRepository $repository, CommentEventContainer $eventContainer)
CommentManager constructor.
at line 48
array
findAllComments()
at line 60
mixed
findAllCommentsLimited(int $limit)
Find provided($limit) number of comments(as array)
at line 76
bool
changeCommentStatuses(array $array, int $ticketId)
Change status of all provided comments to "seen"
at line 88
array
findAllCommentsById(int $id)
Find all comments for provided ticket id
at line 112
mixed
saveComment(Comment $comment)
Save new comment, and send email to user and all admin users
at line 160
Ticket
getTicketObjectById(int $ticketId)
Find ticket(as object) for provided id