Skip to content

Commit

Permalink
#4148 - Build-in API support: (Notification clean)
Browse files Browse the repository at this point in the history
  • Loading branch information
romanlesnikov committed Nov 13, 2023
1 parent 176facc commit c77af56
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/boonex/notifications/classes/BxNtfsModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ public function serviceGetSafeServices()
'GetData' => '',
'GetUnreadNotificationsNum' => '',
'GetUnreadNotificationsNumEx' => '',
'MarkAsRead' => '',
];
}

Expand Down Expand Up @@ -660,6 +661,13 @@ public function groupEvents(&$aEvents)
unset($aEvents[$iIndex]);
}
}

public function serviceMarkAsRead()
{
$iOwnerId = bx_get_logged_profile_id();
$aParams = $this->_prepareParams(BX_NTFS_TYPE_OBJECT_OWNER_AND_CONNECTIONS, $iOwnerId);
$this->markAsRead($iOwnerId, $aParams);
}

public function markAsRead($iOwnerId, $aParams)
{
Expand Down

0 comments on commit c77af56

Please sign in to comment.