PHP Интерфейс Fenos\Notifynder\Contracts\NotifynderNotification

Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
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 ) : 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, $paginate, 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, $paginate, 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.

Описание методов

countNotRead() публичный Метод

Get number of notification not read.
public countNotRead ( $toId, Closur\Closure $filterScope = null ) : mixed
$toId
$filterScope Closur\Closure
Результат mixed

delete() публичный Метод

Delete a notification giving the id of it.
public delete ( $notificationId ) : boolean
$notificationId
Результат boolean

deleteAll() публичный Метод

Delete all notification of a given Entity.
public deleteAll ( $entityId ) : boolean
$entityId
Результат boolean

deleteByCategory() публичный Метод

Delete All notifications from a defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean
$categoryName string
$expired Bool
Результат boolean

deleteLimit() публичный Метод

Delete numbers of notifications equals to the number passing as 2 parameter of the current user.
public deleteLimit ( $entityId, $number, $order ) : mixed
$entityId
$number
$order
Результат mixed

entity() публичный Метод

Set the entity for polymorphic.
public entity ( $name )
$name

find() публичный Метод

Find a notification by ID.
public find ( $notificationId ) : Notification | Model | static
$notificationId
Результат Fenos\Notifynder\Models\Notification | Illuminate\Database\Eloquent\Model | static

getAll() публичный Метод

Get All notifications.
public getAll ( $toId, $limit, $paginate, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$limit
$paginate
$orderDate string
$filterScope Closur\Closure
Результат mixed

getLastNotification() публичный Метод

Get last notification of the given entity.
public getLastNotification ( $toId, Closur\Closure $filterScope = null ) : mixed
$toId
$filterScope Closur\Closure
Результат mixed

getLastNotificationByCategory() публичный Метод

Get last notification of the given entity of the specific category.
public getLastNotificationByCategory ( $category, $toId, Closur\Closure $filterScope = null ) : mixed
$category
$toId
$filterScope Closur\Closure
Результат mixed

getNotRead() публичный Метод

Get notifications not read of the entity given.
public getNotRead ( $toId, $limit, $paginate, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$limit
$paginate
$orderDate string
$filterScope Closur\Closure
Результат mixed

readAll() публичный Метод

Read all notification of the given entity.
public readAll ( $toId ) : Number
$toId
Результат Number

readLimit() публичный Метод

Read notifications in base the number Given.
public readLimit ( $toId, $numbers, string $order = 'ASC' ) : mixed
$toId
$numbers
$order string
Результат mixed

readOne() публичный Метод

Make read one notification giving the ID of it.
public readOne ( $notificationId ) : boolean | Notification
$notificationId
Результат boolean | Fenos\Notifynder\Models\Notification

sendMultiple() публичный Метод

Send multiple notifications.
public sendMultiple ( array $info ) : mixed
$info array
Результат mixed

sendOne() публичный Метод

Send single notification.
public sendOne ( array $info ) : static
$info array
Результат static