NotificationServiceDecorator
NotificationServiceDecorator.php
:
17
Abstract
Implements
NotificationService
Properties¶
$innerService
¶
NotificationServiceDecorator.php
:
19
|
|
Methods¶
__construct()
¶
NotificationServiceDecorator.php
:
21
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | NotificationService | - | - |
createNotification()
¶
NotificationServiceDecorator.php
:
68
Creates a new notification.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | CreateStruct | - | - |
Return values
deleteNotification()
¶
NotificationServiceDecorator.php
:
73
Deletes a notification.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
findNotifications()
¶
NotificationServiceDecorator.php
:
33
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | NotificationQuery|null | null | - |
Return values
getNotification()
¶
NotificationServiceDecorator.php
:
38
Load single notification (by ID).
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notificationId | int | - |
Notification ID |
Return values
getNotificationCount()
¶
NotificationServiceDecorator.php
:
63
Get count of total users notifications.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$query | NotificationQuery|null | null | - |
Return values
int
getPendingNotificationCount()
¶
NotificationServiceDecorator.php
:
58
Get count of unread users notifications.
|
|
Return values
int
loadNotifications()
¶
NotificationServiceDecorator.php
:
26
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$offset | int | - | - |
$limit | int | - | - |
Return values
markNotificationAsRead()
¶
NotificationServiceDecorator.php
:
48
Mark notification as read so it no longer bother the user.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
markNotificationAsUnread()
¶
NotificationServiceDecorator.php
:
53
Marks the given notification as unread so it is shown again as new to the user.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
markUserNotificationsAsRead()
¶
NotificationServiceDecorator.php
:
43
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notificationIds | array<string|int, mixed> | [] | - |