Properties¶
$innerService¶
NotificationServiceDecorator.php
:
19
|
|
Methods¶
__construct() ¶
NotificationServiceDecorator.php
:
21
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$innerService | NotificationService | - | - |
createNotification() ¶
NotificationServiceDecorator.php
:
53
Creates a new notification.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | CreateStruct | - | - |
Return values
deleteNotification() ¶
NotificationServiceDecorator.php
:
58
Deletes a notification.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
getNotification() ¶
NotificationServiceDecorator.php
:
33
Load single notification (by ID).
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notificationId | int | - |
Notification ID |
Return values
getNotificationCount() ¶
NotificationServiceDecorator.php
:
48
Get count of total users notifications.
|
|
Return values
int
getPendingNotificationCount() ¶
NotificationServiceDecorator.php
:
43
Get count of unread users notifications.
|
|
Return values
int
loadNotifications() ¶
NotificationServiceDecorator.php
:
26
Get currently logged user notifications.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$offset | int | - |
the start offset for paging |
$limit | int | - |
the number of notifications returned |
Return values
markNotificationAsRead() ¶
NotificationServiceDecorator.php
:
38
Mark notification as read so it no longer bother the user.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |