PointPackageRepository
extends AbstractRepository
in package
implements
PointPackageRepositoryInterface
Uses
InputCleanerTrait
Class PointPackageRepository.
Tags
Table of Contents
Interfaces
- PointPackageRepositoryInterface
- Interface PointPackageRepositoryInterface.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- activatePackage() : PointPackage
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createMany() : bool
- createPackage() : PointPackage
- deactivatePackage() : PointPackage
- deletePackage() : bool
- find() : PointPackage
- getModel() : PointPackage
- getPurchasePackageMessage() : array<int, mixed>
- getSearchOptions() : array<string|int, mixed>
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- initPurchase() : PackagePurchase
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- onFailedPurchasePackage() : void
- onSuccessPurchasePackage() : void
- purchasePackage() : array<string, mixed>
- updatePackage() : PointPackage
- viewPackage() : PointPackage
- viewPackages() : Paginator
- viewPackagesAdmin() : Collection
- where() : $this
- withUserMorphTypeActiveScope() : self
- getPurchasePackageRepository() : PurchasePackageRepositoryInterface
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
activatePackage()
public
activatePackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Tags
Return values
PointPackagebuildQueryScopes()
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
boolcreatePackage()
public
createPackage(User $context, array<string, mixed> $attributes) : PointPackage
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
PointPackagedeactivatePackage()
public
deactivatePackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Tags
Return values
PointPackagedeletePackage()
public
deletePackage(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Tags
Return values
boolfind()
public
find(mixed $id, mixed $columns) : PointPackage
Parameters
- $id : mixed
- $columns : mixed
Return values
PointPackagegetModel()
public
getModel() : PointPackage
Return values
PointPackagegetPurchasePackageMessage()
public
getPurchasePackageMessage(int $id) : array<int, mixed>
Parameters
- $id : int
Tags
Return values
array<int, mixed>getSearchOptions()
public
getSearchOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>getUserContractMorphTypeColumns()
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
boolinitPurchase()
public
initPurchase(User $context, PointPackage $package, array<string, mixed> $attributes) : PackagePurchase
Parameters
- $context : User
- $package : PointPackage
- $attributes : array<string, mixed>
Return values
PackagePurchaseisNoSponsorView()
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
stringonFailedPurchasePackage()
public
onFailedPurchasePackage(PackagePurchase $purchase) : void
Parameters
- $purchase : PackagePurchase
Tags
onSuccessPurchasePackage()
public
onSuccessPurchasePackage(PackagePurchase $purchase) : void
Parameters
- $purchase : PackagePurchase
Tags
purchasePackage()
public
purchasePackage(User $context, int $id, array<string|int, mixed> $attributes) : array<string, mixed>
Parameters
- $context : User
- $id : int
- $attributes : array<string|int, mixed>
Tags
Return values
array<string, mixed>updatePackage()
public
updatePackage(User $context, int $id, array<string|int, mixed> $attributes) : PointPackage
Parameters
- $context : User
- $id : int
- $attributes : array<string|int, mixed>
Tags
Return values
PointPackageviewPackage()
public
viewPackage(User $context, int $id) : PointPackage
Parameters
- $context : User
- $id : int
Tags
Return values
PointPackageviewPackages()
public
viewPackages(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
Return values
PaginatorviewPackagesAdmin()
public
viewPackagesAdmin(User $context, array<string, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
Collectionwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfgetPurchasePackageRepository()
protected
getPurchasePackageRepository() : PurchasePackageRepositoryInterface