Method |
Description |
|
__construct ( Fenos\Notifynder\Contracts\NotificationDB $notifynderRepo ) |
|
|
countNotRead ( $toId, Closur\Closure $filterScope = null ) : mixed |
Get number of notification
not read. |
|
delete ( $notificationId ) : boolean |
Delete a notification giving the id
of it. |
|
deleteAll ( $entityId ) : boolean |
Delete all notification of a given
Entity. |
|
deleteByCategory ( $categoryName, $expired = false ) : boolean |
Delete All notifications from a
defined category. |
|
deleteLimit ( $entityId, $number, $order = 'asc' ) : mixed |
Delete numbers of notifications equals
to the number passing as 2 parameter of
the current user. |
|
entity ( $name ) |
Set the entity for polymorphic. |
|
find ( $notificationId ) : Notification | Model | static |
Find a notification by ID. |
|
getAll ( $toId, $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed |
Get All notifications. |
|
getLastNotification ( $toId, Closur\Closure $filterScope = null ) : mixed |
Get last notification of the
given entity. |
|
getLastNotificationByCategory ( $category, $toId, Closur\Closure $filterScope = null ) : mixed |
Get last notification of the
given entity of the specific category. |
|
getNotRead ( $toId, $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed |
Get notifications not read
of the entity given. |
|
readAll ( $toId ) : Number |
Read all notification of the
given entity. |
|
readLimit ( $toId, $numbers, string $order = 'ASC' ) : mixed |
Read notifications in base the number
Given. |
|
readOne ( $notificationId ) : boolean | Notification |
Make read one notification giving
the ID of it. |
|
sendMultiple ( array $info ) : mixed |
Send multiple notifications. |
|
sendOne ( array $info ) : static |
Send single notification. |
|