Method |
Description |
|
__construct ( EntityManager $em, PublicationService $publicationService ) |
|
|
countBy ( array $criteria ) : integer |
Get total count for given criteria |
|
find ( integer $id ) : Newscoop\Entity\Comment |
Find a comment by its id. |
|
findBy ( array $criteria, array | null $orderBy = null, integer | null $limit = null, integer | null $offset = null ) : array |
Find records by set of criteria |
|
findUserComments ( array $params, array $order, integer $limit, integer $start ) : array |
Gets all replies to a comment. |
|
getAllReplies ( integer | array $commentId, Newscoop\Repository\CommentRepository $commentRepository ) : array |
Gets all replies to a comment. |
|
getArticleStats ( mixed $ids ) : array |
Get comments statistics for articles |
|
getCommentCounts ( array $ids, $recommended = false, $all = false ) : array |
Get articles comment counts |
|
getRepository ( ) : Newscoop\Entity\Repository\CommentRepository |
Get repository for comment entity |
|
isBanned ( Newscoop\Entity\Comment\Commenter $commenter ) : boolean |
Checks if a commenter is banned |
|
remove ( Comment $comment ) : Comment |
Mark comment as removed |
|
save ( Comment $comment, array $attributes, $userId = null ) : Comment |
Save (create new/update) comment (with commenter) |
|
searchByPhrase ( string $phrase ) : Doctrine\ORM\QueryBuilder |
Searchs comments by given phrase |
|
update ( GenericEvent $event ) : void |
Receives notifications of points events. |
|
updateComment ( Comment $comment, array $attributes ) : Comment |
Update comment |
|