ReportOwnerRepository
extends AbstractRepository
in package
implements
ReportOwnerRepositoryInterface
Class AbstractRepository.
Table of Contents
Interfaces
- ReportOwnerRepositoryInterface
- Interface ReportOwner.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- checkReportExist() : bool
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createReportOwner() : false|ReportOwner
- find() : ReportOwner
- getModel() : ReportOwner
- getReportByItem() : Model|null
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- updateReportOwner() : bool
- viewReports() : Paginator
- viewUsers() : array<string|int, mixed>|Collection
- where() : $this
- withUserMorphTypeActiveScope() : self
- reportOwnerUserRepository() : ReportOwnerUserRepositoryInterface
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
checkReportExist()
public
checkReportExist(User $context, int $reportId) : bool
Parameters
- $context : User
- $reportId : int
Return values
boolcleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolcreateReportOwner()
public
createReportOwner(User $context, array<string|int, mixed> $attributes) : false|ReportOwner
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
false|ReportOwnerfind()
public
find(mixed $id, mixed $columns) : ReportOwner
Parameters
- $id : mixed
- $columns : mixed
Return values
ReportOwnergetModel()
public
getModel() : ReportOwner
Return values
ReportOwnergetReportByItem()
public
getReportByItem(int $itemId, string $itemType) : Model|null
Parameters
- $itemId : int
- $itemType : string
Return values
Model|nullgetUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>hasSponsorView()
public
hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
- $attributes : array<string|int, mixed>
Return values
boolisNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
public
model() : string
Return values
stringupdateReportOwner()
public
updateReportOwner(User $context, int $id, array<string|int, mixed> $attributes) : bool
Parameters
- $context : User
- $id : int
- $attributes : array<string|int, mixed>
Return values
boolviewReports()
public
viewReports(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
PaginatorviewUsers()
public
viewUsers(User $context, int $reportId) : array<string|int, mixed>|Collection
Parameters
- $context : User
- $reportId : int
Tags
Return values
array<string|int, mixed>|Collectionwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfreportOwnerUserRepository()
private
reportOwnerUserRepository() : ReportOwnerUserRepositoryInterface