MetaFox

SnoozeRepositoryInterface
in

Interface SnoozeRepositoryInterface.

Tags
mixin

AbstractRepository

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

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
throws
AuthorizationException

getSnoozes()

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

snooze()

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> = []
Return values
Snooze

        
On this page

Search results