Property | Type | Description | |
---|---|---|---|
$categoriesContainer | array | ||
$defaultCategory | |||
$entity | string | null | | null | |
$eventSender | string | This sender method will be used on the dispatcher. | |
$notification | Fenos\Notifynder\Contracts\NotifynderNotification | ||
$notifynderCategory | Fenos\Notifynder\Contracts\NotifynderCategory | ||
$notifynderDispatcher | Fenos\Notifynder\Contracts\NotifynderDispatcher | ||
$notifynderGroup | Fenos\Notifynder\Contracts\NotifynderGroup | ||
$notifynderSender | Fenos\Notifynder\Contracts\NotifynderSender |
Method | Description | |
---|---|---|
__call ( $name, $arguments ) : void | mixed | Call the custom sender method. | |
__construct ( Fenos\Notifynder\Contracts\NotifynderCategory $notifynderCategory, Fenos\Notifynder\Contracts\NotifynderSender $notifynderSender, Fenos\Notifynder\Contracts\NotifynderNotification $notification, Fenos\Notifynder\Contracts\NotifynderDispatcher $notifynderDispatcher, Fenos\Notifynder\Contracts\NotifynderGroup $notifynderGroup ) | ||
__get ( $name ) : mixed | Get property from the builder. | |
__set ( $name, $value ) | Set builder properties When setting dynamic properties. | |
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 ( ) : |
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. | |
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 | |
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, integer | null $paginate = null, 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, null | integer $paginate = null, 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 ) : Number | Read all notifications of the given entity. | |
readLimit ( $toId, $numbers, string $order = 'ASC' ) : mixed | Read notification in base the number Given. | |
readOne ( $notificationId ) : boolean | |
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 = [] ) : |
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. |
Method | Description | |
---|---|---|
isLazyLoaded ( $name ) : boolean | Check if the category is eager Loaded. | |
setCategoriesContainer ( $name, array $categoriesContainer ) | Push a category in the categoriesContainer property. |
public __construct ( Fenos\Notifynder\Contracts\NotifynderCategory $notifynderCategory, Fenos\Notifynder\Contracts\NotifynderSender $notifynderSender, Fenos\Notifynder\Contracts\NotifynderNotification $notification, Fenos\Notifynder\Contracts\NotifynderDispatcher $notifynderDispatcher, Fenos\Notifynder\Contracts\NotifynderGroup $notifynderGroup ) | ||
$notifynderCategory | Fenos\Notifynder\Contracts\NotifynderCategory | |
$notifynderSender | Fenos\Notifynder\Contracts\NotifynderSender | |
$notification | Fenos\Notifynder\Contracts\NotifynderNotification | |
$notifynderDispatcher | Fenos\Notifynder\Contracts\NotifynderDispatcher | |
$notifynderGroup | Fenos\Notifynder\Contracts\NotifynderGroup |
public __set ( $name, $value ) | ||
$name | ||
$value |
public addCategoriesToGroup ( ) : mixed | ||
return | mixed |
public addCategory ( $name, $text ) : static | ||
$name | ||
$text | ||
return | static |
public addCategoryToGroupById ( $groupId, $categoryId ) : mixed | ||
$groupId | ||
$categoryId | ||
return | mixed |
public addCategoryToGroupByName ( $groupName, $categoryName ) : mixed | ||
$groupName | ||
$categoryName | ||
return | mixed |
public bootListeners ( array $listeners ) | ||
$listeners | array |
public builder ( ) : |
||
return |
public countNotRead ( $toId, Closur\Closure $filterScope = null ) : mixed | ||
$toId | ||
$filterScope | Closur\Closure | |
return | mixed |
public deleteByCategory ( $categoryName, $expired = false ) : boolean | ||
$categoryName | string | |
$expired | Bool | |
return | boolean |
public deleteLimit ( $toId, $number, string $order = 'ASC' ) : mixed | ||
$toId | ||
$number | ||
$order | string | |
return | mixed |
public dispatchWith ( $customSenderName ) | ||
$customSenderName |
public entity ( $name ) | ||
$name |
public findNotificationById ( $notificationId ) : Illuminate\Database\Eloquent\Collection | |
||
$notificationId | ||
return | Illuminate\Database\Eloquent\Collection | |
public getCategoriesContainer ( $name ) : array | ||
$name | ||
return | array |
public getLastNotification ( $toId, null $category = null, Closur\Closure $filterScope = null ) : mixed | ||
$toId | ||
$category | null | |
$filterScope | Closur\Closure | |
return | mixed |
protected isLazyLoaded ( $name ) : boolean | ||
$name | ||
return | boolean |
public readAll ( $toId ) : Number | ||
$toId | ||
return | Number |
public sendMultiple ( array $info = [] ) : |
||
$info | array | |
return |
protected setCategoriesContainer ( $name, array $categoriesContainer ) | ||
$name | ||
$categoriesContainer | array |
public updateCategory ( array $updates, $categoryId ) : mixed | ||
$updates | array | |
$categoryId | ||
return | mixed |
protected NotificationCategory,Fenos\Notifynder\Models|null $defaultCategory | ||
return |
protected string $eventSender | ||
return | string |
protected NotifynderNotification,Fenos\Notifynder\Contracts $notification | ||
return | Fenos\Notifynder\Contracts\NotifynderNotification |
protected NotifynderCategory,Fenos\Notifynder\Contracts $notifynderCategory | ||
return | Fenos\Notifynder\Contracts\NotifynderCategory |
protected NotifynderDispatcher,Fenos\Notifynder\Contracts $notifynderDispatcher | ||
return | Fenos\Notifynder\Contracts\NotifynderDispatcher |
protected NotifynderGroup,Fenos\Notifynder\Contracts $notifynderGroup | ||
return | Fenos\Notifynder\Contracts\NotifynderGroup |