NotificationService
        NotificationService.php
                :
        19
                 
    
            Interface
                Service to manager user notifications. It works in the context of a current User (obtained from the PermissionResolver).
Methods¶
                 createNotification()
            ¶
createNotification()
            ¶
    
        
        NotificationService.php
                :
        83
                 
    
        Creates a new notification.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $createStruct | CreateStruct | - | - | 
Return values
Tags
                 deleteNotification()
            ¶
deleteNotification()
            ¶
    
        
        NotificationService.php
                :
        90
                 
    
        Deletes a notification.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
                 getNotification()
            ¶
getNotification()
            ¶
    
        
        NotificationService.php
                :
        40
                 
    
        Load single notification (by ID).
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notificationId | int | - | Notification ID | 
Return values
Tags
                 getNotificationCount()
            ¶
getNotificationCount()
            ¶
    
        
        NotificationService.php
                :
        72
                 
    
        Get count of total users notifications.
|  |  | 
Return values
int
                 getPendingNotificationCount()
            ¶
getPendingNotificationCount()
            ¶
    
        
        NotificationService.php
                :
        65
                 
    
        Get count of unread users notifications.
|  |  | 
Return values
int
                 loadNotifications()
            ¶
loadNotifications()
            ¶
    
        
        NotificationService.php
                :
        29
                 
    
        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()
            ¶
markNotificationAsRead()
            ¶
    
        
        NotificationService.php
                :
        50
                 
    
        Mark notification as read so it no longer bother the user.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - | 
Tags
                 markNotificationAsUnread()
            ¶
markNotificationAsUnread()
            ¶
    
        
        NotificationService.php
                :
        58
                 
    
        Marks the given notification as unread so it is shown again as new to the user.
|  |  | 
Parameters
| Name | Type | Default value | Description | 
|---|---|---|---|
| $notification | Notification | - | - |