PointSettingRepository
extends AbstractRepository
in package
implements
PointSettingRepositoryInterface
Class PointSettingRepository.
Tags
Table of Contents
Interfaces
- PointSettingRepositoryInterface
- Interface PointSettingRepositoryInterface.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- activateSetting() : PointSetting
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- clonePointSettings() : void
- createMany() : bool
- deactivateSetting() : PointSetting
- find() : PointSetting
- getAllPackageId() : array<string|int, mixed>
- getAllPointSetting() : Collection
- getModel() : PointSetting
- getModuleOptions() : array<int, mixed>
- getSettingActionsByPackageId() : array<int, mixed>
- getUserContractMorphTypeColumns() : array<string|int, string>
- getUserPointSetting() : PointSetting|null
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- updateSetting() : PointSetting
- viewSettings() : Collection
- viewSettingsAdmin() : Paginator
- where() : $this
- withUserMorphTypeActiveScope() : self
- checkPointDecreased() : PointSetting|null
- checkPointIncreased() : PointSetting|null
- getPointSetting() : PointSetting|null
Properties
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
activateSetting()
public
activateSetting(User $context, int $id) : PointSetting
Parameters
- $context : User
- $id : int
Tags
Return values
PointSettingbuildQueryScopes()
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|nullclonePointSettings()
public
clonePointSettings(int $destRoleId, int $sourceRoleId) : void
Parameters
- $destRoleId : int
- $sourceRoleId : int
createMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
booldeactivateSetting()
public
deactivateSetting(User $context, int $id) : PointSetting
Parameters
- $context : User
- $id : int
Tags
Return values
PointSettingfind()
public
find(mixed $id, mixed $columns) : PointSetting
Parameters
- $id : mixed
- $columns : mixed
Return values
PointSettinggetAllPackageId()
public
getAllPackageId() : array<string|int, mixed>
Return values
array<string|int, mixed>getAllPointSetting()
public
getAllPointSetting() : Collection
Return values
CollectiongetModel()
public
getModel() : PointSetting
Return values
PointSettinggetModuleOptions()
public
getModuleOptions() : array<int, mixed>
Tags
Return values
array<int, mixed>getSettingActionsByPackageId()
public
getSettingActionsByPackageId(string $packageId) : array<int, mixed>
Parameters
- $packageId : string
Tags
Return values
array<int, mixed>getUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>getUserPointSetting()
public
getUserPointSetting(User $user, Entity $resource, string $action, int $type) : PointSetting|null
Parameters
Tags
Return values
PointSetting|nullhasSponsorView()
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
stringupdateSetting()
public
updateSetting(User $context, int $id, array<string|int, mixed> $attributes) : PointSetting
Parameters
- $context : User
- $id : int
- $attributes : array<string|int, mixed>
Tags
Return values
PointSettingviewSettings()
public
viewSettings(User $context, array<string|int, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
Return values
CollectionviewSettingsAdmin()
public
viewSettingsAdmin(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
selfcheckPointDecreased()
private
checkPointDecreased(PointSetting $setting, User $user) : PointSetting|null
Parameters
- $setting : PointSetting
- $user : User
Return values
PointSetting|nullcheckPointIncreased()
private
checkPointIncreased(PointSetting $setting, User $user) : PointSetting|null
Parameters
- $setting : PointSetting
- $user : User
Return values
PointSetting|nullgetPointSetting()
private
getPointSetting(User $user, string $nameSetting) : PointSetting|null
Parameters
- $user : User
- $nameSetting : string