MetaFox

LikeRepositoryInterface
in

Interface Like.

Tags
mixin

BaseRepository

Table of Contents

Methods

createLike()  : array<string, mixed>
deleteByUser()  : bool
deleteByUserAndItem()  : array<string, mixed>
deleteLikeById()  : bool
getLike()  : Like|null
getMostReactions()  : Collection
isLiked()  : bool
viewLikes()  : Paginator
viewLikeTabs()  : array<int, mixed>

Methods

createLike()

public createLike(User $context, int $itemId, string $itemType, int $reactionId) : array<string, mixed>
Parameters
$context : User
$itemId : int
$itemType : string
$reactionId : int
Tags
throws
AuthorizationException
Return values
array<string, mixed>

deleteByUserAndItem()

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

deleteLikeById()

public deleteLikeById(User $context, int $id) : bool
Parameters
$context : User
$id : int
Tags
throws
AuthorizationException
Return values
bool

viewLikes()

public viewLikes(User $context, array<string, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Paginator

viewLikeTabs()

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

        
On this page

Search results