MetaFox

FriendRequestRepositoryInterface
in

Tags
mixin

UserMorphTrait

Table of Contents

Methods

countFriendRequest()  : void
countTotalFriendRequest()  : int
deleteAllRequestByUserIdAndOwnerId()  : bool
deleteRequestById()  : bool
deleteRequestByUserIdAndOwnerId()  : bool
getRequest()  : Model|FriendRequest|object|null
isRequested()  : bool
markAllAsRead()  : void
sendRequest()  : array<int, mixed>
updateRequest()  : array<int, mixed>
viewRequests()  : Paginator

Methods

deleteAllRequestByUserIdAndOwnerId()

public deleteAllRequestByUserIdAndOwnerId(int $userId, int $ownerId) : bool
Parameters
$userId : int
$ownerId : int
Return values
bool

deleteRequestByUserIdAndOwnerId()

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

updateRequest()

public updateRequest(User $user, User $owner, string $action) : array<int, mixed>
Parameters
$user : User
$owner : User
$action : string
Tags
throws
AuthorizationException
throws
ValidatorException
Return values
array<int, mixed>

viewRequests()

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

        
On this page

Search results