Method |
Description |
|
addCategoriesToGroup ( ) : mixed |
Add categories to a group having as first parameter
the name of the group, and others as name
categories. |
|
addCategory ( $name, $text ) : static |
Add a category. |
|
addCategoryToGroupById ( $groupId, $categoryId ) : mixed |
Add category to a group
giving the ids of them. |
|
addCategoryToGroupByName ( $groupName, $categoryName ) : mixed |
Add category to a group
giving the names of them. |
|
bootListeners ( array $listeners ) |
Boot Listeners. |
|
builder ( ) : NotifynderBuilder |
Get instance of the notifynder builder. |
|
category ( $name ) |
Set the category of the
notification. |
|
countNotRead ( $toId, Closur\Closure $filterScope = null ) : mixed |
Get number of notification not read
of the given entity. |
|
delegate ( array $delegation, $data = [] ) : mixed |
Associate events to categories. |
|
delete ( $notificationId ) : boolean |
Delete a single notification. |
|
deleteAll ( $toId ) : boolean |
Delete all notifications
of the the given entity. |
|
deleteByCategory ( $categoryName, $expired = false ) : boolean |
Delete All notifications from a
defined category. |
|
deleteLimit ( $toId, $number, string $order = 'ASC' ) : mixed |
Delete number of notifications
specified of the given entity. |
|
dispatchWith ( $customSenderName ) |
Define which method
the event dispatcher has
to send the notifications
as default we have 'send' so will be
$notifynder->send() if u pass 'sendCustom'
it will be like $notifynder->sendCustom(). |
|
entity ( $name ) |
Define an entity when Notifynder is
used Polymorphically. |
|
extend ( $name, callable $registrar ) |
Extend a custom sender method. |
|
findNotificationById ( $notificationId ) : Illuminate\Database\Eloquent\Collection | Model | static |
Find Notification by ID. |
|
fire ( string $key, string $categoryName, mixed | null $values = [] ) : mixed | null |
Fire method for fire listeners
of logic. |
|
getAll ( $toId, null $limit = null, boolean $paginate = false, string $order = 'desc', Closur\Closure $filterScope = null ) : mixed |
Get all notifications of the
given entity. |
|
getCategoriesContainer ( $name ) : array |
Get the categoriesContainer property. |
|
getLastNotification ( $toId, null $category = null, Closur\Closure $filterScope = null ) : mixed |
Get last notification of the given
entity, second parameter can filter by
category. |
|
getNotRead ( $toId, null $limit = null, boolean $paginate = false, string $order = 'desc', Closur\Closure $filterScope = null ) : mixed |
Get Notifications not read
of the given entity. |
|
id ( ) : mixed |
Return the Id of the category. |
|
readAll ( $toId ) : integer |
Read all notifications of the given
entity. |
|
readLimit ( $toId, $numbers, string $order = 'ASC' ) : mixed |
Read notification in base the number
Given. |
|
readOne ( $notificationId ) : boolean | Notification |
Read one notification. |
|
send ( array $info = [] ) : mixed |
Send notifications
Both multiple and single. |
|
sendGroup ( $groupName, $info = [] ) : mixed |
Send a group of notifications. |
|
sendMultiple ( array $info = [] ) : SendMultiple |
Send multiple notifications. |
|
sendNow ( array $info = [] ) : mixed |
Send immediately the notification
even if the queue is enabled. |
|
sendOne ( array $info = [] ) : mixed |
Send One notification. |
|
updateCategory ( array $updates, $categoryId ) : mixed |
Update a category. |
|