ConversionRequestRepository
extends AbstractRepository
in package
implements
ConversionRequestRepositoryInterface
Class ConversionRequestRepository.
Table of Contents
Interfaces
- ConversionRequestRepositoryInterface
- Interface ConversionRequest
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- approveConversionRequest() : ConversionRequest
- buildQueryScopes() : mixed
- cancelConversionRequest() : ConversionRequest
- cleanContent() : string|null
- cleanTitle() : string|null
- createConversionRequest() : mixed
- createMany() : bool
- denyConversionRequest() : ConversionRequest
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : mixed
- viewConversionRequestAdminCP() : Paginator
- viewConversionRequests() : Paginator
- where() : $this
- withUserMorphTypeActiveScope() : self
- buildQuery() : void
- sendApprovedNotification() : void
- sendDeniedNotification() : void
- sendPendingNotification() : void
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
approveConversionRequest()
public
approveConversionRequest(User $user, ConversionRequest $request) : ConversionRequest
Parameters
- $user : User
- $request : ConversionRequest
Return values
ConversionRequestbuildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
cancelConversionRequest()
public
cancelConversionRequest(User $user, ConversionRequest $request) : ConversionRequest
Parameters
- $user : User
- $request : ConversionRequest
Return values
ConversionRequestcleanContent()
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|nullcreateConversionRequest()
public
createConversionRequest(User $user, int $points[, string $currency = Support::DEFAULT_CONVERSION_RATE_CURRENCY_TO_MONEY ]) : mixed
Parameters
- $user : User
- $points : int
- $currency : string = Support::DEFAULT_CONVERSION_RATE_CURRENCY_TO_MONEY
createMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
booldenyConversionRequest()
public
denyConversionRequest(User $user, ConversionRequest $request[, string|null $reason = null ]) : ConversionRequest
Parameters
- $user : User
- $request : ConversionRequest
- $reason : string|null = null
Return values
ConversionRequestgetUserContractMorphTypeColumns()
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() : mixed
viewConversionRequestAdminCP()
public
viewConversionRequestAdminCP([array<string|int, mixed> $attributes = [] ]) : Paginator
Parameters
- $attributes : array<string|int, mixed> = []
Return values
PaginatorviewConversionRequests()
public
viewConversionRequests(User $user[, array<string|int, mixed> $attributes = [] ]) : Paginator
Parameters
- $user : 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
Return values
selfbuildQuery()
private
buildQuery(Builder $query, array<string|int, mixed> $attributes) : void
Parameters
- $query : Builder
- $attributes : array<string|int, mixed>
sendApprovedNotification()
private
sendApprovedNotification(User $context, ConversionRequest $request) : void
Parameters
- $context : User
- $request : ConversionRequest
sendDeniedNotification()
private
sendDeniedNotification(User $user, ConversionRequest $request) : void
Parameters
- $user : User
- $request : ConversionRequest
sendPendingNotification()
private
sendPendingNotification(ConversionRequest $request) : void
Parameters
- $request : ConversionRequest