Handler
Handler.php
:
13
Methods¶
countNotifications() ¶
Handler.php
:
67
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$currentUserId | int | - | - |
Return values
int
countPendingNotifications() ¶
Handler.php
:
42
Count users unread Notifications.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$ownerId | int | - | - |
Return values
int
createNotification() ¶
Handler.php
:
22
Store Notification ValueObject in persistent storage.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$createStruct | CreateStruct | - | - |
Return values
delete() ¶
Handler.php
:
72
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
getNotificationById() ¶
Handler.php
:
51
Get Notification by its id.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notificationId | int | - | - |
Return values
loadUserNotifications() ¶
Handler.php
:
60
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userId | int | - | - |
$offset | int | - | - |
$limit | int | - | - |
Return values
array<string|int, Notification>
updateNotification() ¶
Handler.php
:
33
Update Notification ValueObject in persistent storage.
|
|
There's no edit feature but it's essential to mark Notification as read.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notification | Notification | - | - |
$updateStruct | UpdateStruct | - | - |