ReportReasonRepository
extends AbstractRepository
in package
implements
ReportReasonRepositoryInterface
Class ReportReasonRepository.
Table of Contents
Interfaces
- ReportReasonRepositoryInterface
- Interface ReportReason.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createReason() : ReportReason
- deleteReason() : bool
- find() : ReportReason
- getFormReason() : Collection
- getModel() : ReportReason
- 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
- updateReason() : ReportReason
- viewReason() : ReportReason
- viewReasons() : Paginator
- where() : $this
- withUserMorphTypeActiveScope() : self
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
cleanContent()
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
boolcreateReason()
public
createReason(User $context, array<string|int, mixed> $attributes) : ReportReason
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
ReportReasondeleteReason()
public
deleteReason(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
boolfind()
public
find(mixed $id, mixed $columns) : ReportReason
Parameters
- $id : mixed
- $columns : mixed
Return values
ReportReasongetFormReason()
public
getFormReason(User $context) : Collection
Parameters
- $context : User
Tags
Return values
CollectiongetModel()
public
getModel() : ReportReason
Return values
ReportReasongetUserContractMorphTypeColumns()
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
stringupdateReason()
public
updateReason(User $context, int $id, array<string|int, mixed> $attributes) : ReportReason
Parameters
- $context : User
- $id : int
- $attributes : array<string|int, mixed>
Return values
ReportReasonviewReason()
public
viewReason(User $context, int $id) : ReportReason
Parameters
- $context : User
- $id : int
Return values
ReportReasonviewReasons()
public
viewReasons(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
Paginatorwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self