SnoozeRepositoryInterface
in
Interface SnoozeRepositoryInterface.
Tags
Table of Contents
Methods
- createOrUpdateSnooze() : Snooze
- deleteExpiredSnoozesHavingSubscription() : void
- deleteExpiredSnoozesNotHavingSubscription() : void
- If snoozes does not have subscriptions, bulk delete.
- deleteSnooze() : mixed
- Delete a snooze resource.
- getSnooze() : Snooze
- Get a hidden resource.
- getSnoozes() : Paginator
- Get all snooze resources by an user.
- snooze() : Snooze
Methods
createOrUpdateSnooze()
public
createOrUpdateSnooze(User $context, User $owner, array<string, mixed> $attributes) : Snooze
Parameters
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
Tags
getSnooze()
Get a hidden resource.
public
getSnooze(User $context, int $id) : Snooze
Parameters
- $context : User
- $id : int
Tags
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
Tags
Return values
Paginatorsnooze()
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> = []