Handler
Handler.php
:
14
Interface
Methods¶
countNotifications()
¶
Handler.php
:
67
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$currentUserId | int | - | - |
$query | NotificationQuery|null | null | - |
Return values
int
countPendingNotifications()
¶
Handler.php
:
43
Count users unread Notifications.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$ownerId | int | - | - |
Return values
int
createNotification()
¶
Handler.php
:
23
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 | - | - |
findUserNotifications()
¶
Handler.php
:
62
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userId | int | - | - |
$query | NotificationQuery|null | null | - |
Return values
array<string|int, Notification>
getNotificationById()
¶
Handler.php
:
52
Get Notification by its id.
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$notificationId | int | - | - |
Return values
loadUserNotifications()
¶
Handler.php
:
57
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$userId | int | - | - |
$offset | int | - | - |
$limit | int | - | - |
Return values
array<string|int, Notification>
updateNotification()
¶
Handler.php
:
34
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 | - | - |