PointTransactionRepository
extends AbstractRepository
in package
implements
PointTransactionRepositoryInterface
Class PointTransactionRepository.
Table of Contents
Interfaces
- PointTransactionRepositoryInterface
- Interface PointTransactionRepositoryInterface.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createTransaction() : PointTransaction
- find() : PointTransaction
- getAdminSentPointByTime() : int
- getModel() : PointTransaction
- getPackageOptions() : array<int, mixed>
- getTransactionByItem() : PointTransaction|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
- viewTransaction() : PointTransaction
- viewTransactions() : Paginator
- viewTransactionsAdmin() : Paginator
- where() : $this
- withUserMorphTypeActiveScope() : self
- getActionIdByName() : int|null
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
boolcreateTransaction()
public
createTransaction(User $context, User $owner, array<string|int, mixed> $params) : PointTransaction
Parameters
Tags
Return values
PointTransactionfind()
public
find(mixed $id, mixed $columns) : PointTransaction
Parameters
- $id : mixed
- $columns : mixed
Return values
PointTransactiongetAdminSentPointByTime()
public
getAdminSentPointByTime(string $time) : int
Parameters
- $time : string
Return values
intgetModel()
public
getModel() : PointTransaction
Return values
PointTransactiongetPackageOptions()
public
getPackageOptions() : array<int, mixed>
Return values
array<int, mixed>getTransactionByItem()
public
getTransactionByItem(User $user, Entity $model, array<string|int, mixed> $attributes) : PointTransaction|null
Parameters
Return values
PointTransaction|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
stringviewTransaction()
public
viewTransaction(User $context, int $id) : PointTransaction
Parameters
- $context : User
- $id : int
Tags
Return values
PointTransactionviewTransactions()
public
viewTransactions(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
Return values
PaginatorviewTransactionsAdmin()
public
viewTransactionsAdmin(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
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
selfgetActionIdByName()
private
getActionIdByName(string|null $name) : int|null
Parameters
- $name : string|null