NotificationRepositoryInterface
in
Interface Notification.
Tags
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
cleanUpTrash()
public
cleanUpTrash() : void
deleteMassNotificationByItem()
public
deleteMassNotificationByItem(int $itemId, string $itemType) : bool
Parameters
- $itemId : int
- $itemType : string
Return values
booldeleteNotification()
public
deleteNotification(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Return values
booldeleteNotificationByItem()
public
deleteNotificationByItem(string $type, int $itemId, string $itemType) : bool
Parameters
- $type : string
- $itemId : int
- $itemType : string
Return values
booldeleteNotificationByItems()
public
deleteNotificationByItems(string $type, array<string|int, int> $itemIds, string $itemType) : bool
Parameters
- $type : string
- $itemIds : array<string|int, int>
- $itemType : string
Return values
booldeleteNotificationByTypeAndNotifiable()
public
deleteNotificationByTypeAndNotifiable(string $type, int $notifiableId, string $notifiableType) : bool
Parameters
- $type : string
- $notifiableId : int
- $notifiableType : string
Return values
booldeleteNotificationsByNotifiable()
public
deleteNotificationsByNotifiable(User $notifiable) : bool
Parameters
- $notifiable : User
Return values
boolgetNewNotificationCount()
public
getNewNotificationCount(User $context, StdClass $data) : void
Parameters
- $context : User
- $data : StdClass
getNotificationByItem()
public
getNotificationByItem(string $type, int $itemId, string $itemType) : Notification|null
Parameters
- $type : string
- $itemId : int
- $itemType : string
Return values
Notification|nullgetNotifications()
public
getNotifications(User $context, array<string, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string, mixed>
Return values
PaginatormarkAllAsNotified()
public
markAllAsNotified(User $context) : bool
Parameters
- $context : User
Return values
boolmarkAllAsRead()
public
markAllAsRead(User $context) : bool
Parameters
- $context : User
Return values
boolmarkAsRead()
public
markAsRead(User $context, int $id) : bool
Parameters
- $context : User
- $id : int