MetaFox

ReportOwnerRepositoryInterface
in

Interface ReportOwner.

Tags
mixin

BaseRepository

Table of Contents

Methods

checkReportExist()  : bool
createReportOwner()  : false|ReportOwner
getReportByItem()  : Model|null
updateReportOwner()  : bool
viewReports()  : Paginator
viewUsers()  : mixed

Methods

getReportByItem()

public getReportByItem(int $itemId, string $itemType) : Model|null
Parameters
$itemId : int
$itemType : string
Return values
Model|null

updateReportOwner()

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

viewReports()

public viewReports(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