MetaFox

CommentRepositoryInterface
in

Interface Comment.

Tags
mixin

BaseRepository

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

deleteCommentById()

public deleteCommentById(User $context, int $id) : array<string, mixed>
Parameters
$context : User
$id : int
Tags
throws
AuthorizationException
Return values
array<string, mixed>

deleteCommentByParentId()

public deleteCommentByParentId(int $parentId) : bool
Parameters
$parentId : int
Return values
bool

getRelatedCommentForItemDetailQuery()

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
Builder

getRelatedCommentsByType()

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
Collection

getRelatedCommentsByTypeQuery()

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
Builder

getRelatedCommentsForItemDetail()

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
Collection

getRelevantCommentsById()

public getRelevantCommentsById(User $context, int $id[, Entity|null $content = null ][, bool $isFeed = true ]) : Collection|null
Parameters
$context : User
$id : int
$content : Entity|null = null
$isFeed : bool = true
Return values
Collection|null

getUsersCommentByItem()

public getUsersCommentByItem(User $context, array<string, mixed> $attributes) : array<int, mixed>
Parameters
$context : User
$attributes : array<string, mixed>
Return values
array<int, mixed>

viewComments()

public viewComments(User $context, array<string, mixed> $attributes) : Collection
Parameters
$context : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
see
IndexRequest
Return values
Collection

        
On this page

Search results