MetaFox

NotificationRepositoryInterface
in

Interface Notification.

Tags
mixin

BaseRepository

Table of Contents

Methods

cleanUpTrash()  : void
deleteMassNotificationByItem()  : bool
deleteNotification()  : bool
deleteNotificationByItem()  : bool
deleteNotificationByItems()  : bool
deleteNotificationByTypeAndNotifiable()  : bool
deleteNotificationsByNotifiable()  : bool
getNewNotificationCount()  : void
getNotificationByItem()  : Notification|null
getNotifications()  : Paginator
markAllAsNotified()  : bool
markAllAsRead()  : bool
markAsRead()  : bool

Methods

deleteMassNotificationByItem()

public deleteMassNotificationByItem(int $itemId, string $itemType) : bool
Parameters
$itemId : int
$itemType : string
Return values
bool

deleteNotificationByItem()

public deleteNotificationByItem(string $type, int $itemId, string $itemType) : bool
Parameters
$type : string
$itemId : int
$itemType : string
Return values
bool

deleteNotificationByItems()

public deleteNotificationByItems(string $type, array<string|int, int> $itemIds, string $itemType) : bool
Parameters
$type : string
$itemIds : array<string|int, int>
$itemType : string
Return values
bool

deleteNotificationByTypeAndNotifiable()

public deleteNotificationByTypeAndNotifiable(string $type, int $notifiableId, string $notifiableType) : bool
Parameters
$type : string
$notifiableId : int
$notifiableType : string
Return values
bool

getNotifications()

public getNotifications(User $context, array<string, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string, mixed>
Return values
Paginator

        
On this page

Search results