MetaFox

PointPackageRepository extends AbstractRepository
in package
implements PointPackageRepositoryInterface Uses InputCleanerTrait

Class PointPackageRepository.

Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

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

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|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

deletePackage()

public deletePackage(User $context, int $id) : bool
Parameters
$context : User
$id : int
Tags
inheritDoc
throws
AuthorizationException
Return values
bool

getPurchasePackageMessage()

public getPurchasePackageMessage(int $id) : array<int, mixed>
Parameters
$id : int
Tags
inheritDoc
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
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

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
inheritDoc
throws
AuthorizationException
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
inheritDoc
throws
AuthorizationException
Return values
PointPackage

viewPackages()

public viewPackages(User $context, array<string|int, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string|int, mixed>
Tags
inheritDoc
throws
AuthorizationException
Return values
Paginator

viewPackagesAdmin()

public viewPackagesAdmin(User $context, array<string, mixed> $attributes) : Collection
Parameters
$context : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Collection

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

        
On this page

Search results