SnoozeRepository
extends AbstractRepository
in package
implements
SnoozeRepositoryInterface
Class ActivitySnoozeRepository.
Table of Contents
Interfaces
- SnoozeRepositoryInterface
- Interface SnoozeRepositoryInterface.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- create() : Snooze
- createMany() : bool
- createOrUpdateSnooze() : Snooze
- deleteExpiredSnoozesHavingSubscription() : void
- deleteExpiredSnoozesNotHavingSubscription() : void
- If snoozes does not have subscriptions, bulk delete.
- deleteSnooze() : mixed
- Delete a snooze resource.
- find() : Snooze
- getModel() : Snooze
- getSnooze() : Snooze
- Get a hidden resource.
- getSnoozes() : Paginator
- Get all snooze resources by an user.
- 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
- snooze() : Snooze
- unSnooze() : Snooze
- UnSnooze an user.
- where() : $this
- withUserMorphTypeActiveScope() : self
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|nullcreate()
public
create(mixed $params) : Snooze
Parameters
- $params : mixed
Return values
SnoozecreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolcreateOrUpdateSnooze()
public
createOrUpdateSnooze(User $context, User $owner, array<string|int, mixed> $attributes) : Snooze
Parameters
Tags
Return values
SnoozedeleteExpiredSnoozesHavingSubscription()
public
deleteExpiredSnoozesHavingSubscription() : void
deleteExpiredSnoozesNotHavingSubscription()
If snoozes does not have subscriptions, bulk delete.
public
deleteExpiredSnoozesNotHavingSubscription() : void
deleteSnooze()
Delete a snooze resource.
public
deleteSnooze(User $context, int $id) : mixed
Parameters
- $context : User
- $id : int
find()
public
find(mixed $id, mixed $columns) : Snooze
Parameters
- $id : mixed
- $columns : mixed
Return values
SnoozegetModel()
public
getModel() : Snooze
Return values
SnoozegetSnooze()
Get a hidden resource.
public
getSnooze(User $context, int $id) : Snooze
Parameters
- $context : User
- $id : int
Return values
SnoozegetSnoozes()
Get all snooze resources by an user.
public
getSnoozes(User $context[, string|null $ownerType = null ][, string|null $textSearch = null ][, int $limit = Pagination::DEFAULT_ITEM_PER_PAGE ]) : Paginator
Parameters
- $context : User
- $ownerType : string|null = null
- $textSearch : string|null = null
- $limit : int = Pagination::DEFAULT_ITEM_PER_PAGE
Return values
PaginatorgetUserContractMorphTypeColumns()
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
stringsnooze()
public
snooze(User $user, User $owner[, int $snoozeDay = 30 ][, int $isSystem = 0 ][, int $isSnoozed = 1 ][, int $isSnoozedForever = 0 ][, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
- $user : User
- $owner : User
- $snoozeDay : int = 30
- $isSystem : int = 0
- $isSnoozed : int = 1
- $isSnoozedForever : int = 0
- $relations : array<string|int, mixed> = []
Tags
Return values
SnoozeunSnooze()
UnSnooze an user.
public
unSnooze(User $user, User $owner[, array<string|int, mixed> $relations = [] ]) : Snooze
Parameters
Return values
Snoozewhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self