CommentRepositoryInterface
in
Interface Comment.
Tags
Table of Contents
Methods
- approve() : Content
- createComment() : Comment
- deleteCommentById() : array<string, mixed>
- deleteCommentByParentId() : bool
- getRelatedCommentForItemDetailQuery() : Builder
- getRelatedComments() : Collection
- getRelatedCommentsByType() : Collection
- getRelatedCommentsByTypeQuery() : Builder
- getRelatedCommentsForItemDetail() : Collection
- getRelevantCommentsById() : Collection|null
- getTotalHidden() : int
- getUsersCommentByItem() : array<int, mixed>
- removeLinkPreview() : bool
- updateComment() : Comment
- viewComment() : Comment
- viewComments() : Collection
Methods
approve()
public
approve(User $context, int $id) : Content
Parameters
- $context : User
- $id : int
Tags
Return values
ContentcreateComment()
public
createComment(User $context, array<string, mixed> $attributes) : Comment
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
CommentdeleteCommentById()
public
deleteCommentById(User $context, int $id) : array<string, mixed>
Parameters
- $context : User
- $id : int
Tags
Return values
array<string, mixed>deleteCommentByParentId()
public
deleteCommentByParentId(int $parentId) : bool
Parameters
- $parentId : int
Return values
boolgetRelatedCommentForItemDetailQuery()
public
getRelatedCommentForItemDetailQuery(User $context, mixed $itemType, mixed $itemId[, array<string|int, mixed> $attributes = [] ]) : Builder
Parameters
- $context : User
- $itemType : mixed
- $itemId : mixed
- $attributes : array<string|int, mixed> = []
Return values
BuildergetRelatedComments()
public
getRelatedComments(User $context, HasTotalComment $content) : Collection
Parameters
- $context : User
- $content : HasTotalComment
Return values
CollectiongetRelatedCommentsByType()
public
getRelatedCommentsByType(User $context, string $itemType, int $itemId[, array<string|int, mixed> $attributes = [] ]) : Collection
Parameters
- $context : User
- $itemType : string
- $itemId : int
- $attributes : array<string|int, mixed> = []
Return values
CollectiongetRelatedCommentsByTypeQuery()
public
getRelatedCommentsByTypeQuery(User $context, string $itemType, int $itemId[, array<string|int, mixed> $attributes = [] ]) : Builder
Parameters
- $context : User
- $itemType : string
- $itemId : int
- $attributes : array<string|int, mixed> = []
Return values
BuildergetRelatedCommentsForItemDetail()
public
getRelatedCommentsForItemDetail(User $context, HasTotalComment $content[, int $limit = 6 ][, array<string|int, mixed> $attributes = [] ]) : Collection
Parameters
- $context : User
- $content : HasTotalComment
- $limit : int = 6
- $attributes : array<string|int, mixed> = []
Return values
CollectiongetRelevantCommentsById()
public
getRelevantCommentsById(User $context, int $id[, Entity|null $content = null ][, bool $isFeed = true ]) : Collection|null
Parameters
Return values
Collection|nullgetTotalHidden()
public
getTotalHidden(User $context, HasTotalComment $item) : int
Parameters
- $context : User
- $item : HasTotalComment
Return values
intgetUsersCommentByItem()
public
getUsersCommentByItem(User $context, array<string, mixed> $attributes) : array<int, mixed>
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
array<int, mixed>removeLinkPreview()
public
removeLinkPreview(Comment $comment) : bool
Parameters
- $comment : Comment
Return values
boolupdateComment()
public
updateComment(User $context, int $id, array<string, mixed> $attributes) : Comment
Parameters
- $context : User
- $id : int
- $attributes : array<string, mixed>
Tags
Return values
CommentviewComment()
public
viewComment(User $context, int $id) : Comment
Parameters
- $context : User
- $id : int
Tags
Return values
CommentviewComments()
public
viewComments(User $context, array<string, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string, mixed>