PHP 인터페이스 Fenos\Notifynder\Contracts\NotificationDB

파일 보기 프로젝트 열기: fenos/notifynder 0 사용 예제들

공개 메소드들

메소드 설명
countNotRead ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed get number Notifications not read.
delete ( $notificationId ) : boolean Delete a notification giving the id of it.
deleteAll ( $toId, $entity ) : boolean Delete All notifications about the current user.
deleteByCategory ( $categoryName, $expired = false ) : boolean Delete All notifications from a defined category.
deleteLimit ( $userId, $entity, $number, $order ) : integer Delete numbers of notifications equals to the number passing as 2 parameter of the current user.
find ( $notificationId ) : Illuminate\Database\Eloquent\Collection | Model | static Find notification by id.
getAll ( $toId, $entity, null $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed Retrieve all notifications, not read in first.
getLastNotification ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed Get last notification of the current entity.
getLastNotificationByCategory ( $category, $toId, $entity, Closur\Closure $filterScope = null ) : mixed Get last notification of the current entity of a specific category.
getNotRead ( $toId, $entity, $limit, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed Retrieve notifications not Read You can also limit the number of Notification if you don't it will get all.
readAll ( $toId, $entity ) : integer Make read all notification not read.
readLimit ( $toId, $entity, $numbers, $order ) : integer Read notifications in base the number Given.
readOne ( Notification $notification ) : boolean | Notification Make Read One Notification.

메소드 상세

countNotRead() 공개 메소드

get number Notifications not read.
public countNotRead ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$filterScope Closur\Closure
리턴 mixed

delete() 공개 메소드

Delete a notification giving the id of it.
public delete ( $notificationId ) : boolean
$notificationId
리턴 boolean

deleteAll() 공개 메소드

Delete All notifications about the current user.
public deleteAll ( $toId, $entity ) : boolean
$toId int
$entity
리턴 boolean

deleteByCategory() 공개 메소드

Delete All notifications from a defined category.
public deleteByCategory ( $categoryName, $expired = false ) : boolean
$categoryName
$expired Bool
리턴 boolean

deleteLimit() 공개 메소드

Delete numbers of notifications equals to the number passing as 2 parameter of the current user.
public deleteLimit ( $userId, $entity, $number, $order ) : integer
$userId int
$entity
$number int
$order string
리턴 integer

find() 공개 메소드

Find notification by id.
public find ( $notificationId ) : Illuminate\Database\Eloquent\Collection | Model | static
$notificationId
리턴 Illuminate\Database\Eloquent\Collection | Illuminate\Database\Eloquent\Model | static

getAll() 공개 메소드

You can also limit the number of Notifications if you don't, it will get all.
public getAll ( $toId, $entity, null $limit = null, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$limit null
$paginate integer | null
$orderDate string
$filterScope Closur\Closure
리턴 mixed

getLastNotification() 공개 메소드

Get last notification of the current entity.
public getLastNotification ( $toId, $entity, Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$filterScope Closur\Closure
리턴 mixed

getLastNotificationByCategory() 공개 메소드

Get last notification of the current entity of a specific category.
public getLastNotificationByCategory ( $category, $toId, $entity, Closur\Closure $filterScope = null ) : mixed
$category
$toId
$entity
$filterScope Closur\Closure
리턴 mixed

getNotRead() 공개 메소드

Retrieve notifications not Read You can also limit the number of Notification if you don't it will get all.
public getNotRead ( $toId, $entity, $limit, integer | null $paginate = null, string $orderDate = 'desc', Closur\Closure $filterScope = null ) : mixed
$toId
$entity
$limit
$paginate integer | null
$orderDate string
$filterScope Closur\Closure
리턴 mixed

readAll() 공개 메소드

Make read all notification not read.
public readAll ( $toId, $entity ) : integer
$toId
$entity
리턴 integer

readLimit() 공개 메소드

Read notifications in base the number Given.
public readLimit ( $toId, $entity, $numbers, $order ) : integer
$toId
$entity
$numbers
$order
리턴 integer

readOne() 공개 메소드

Make Read One Notification.
public readOne ( Notification $notification ) : boolean | Notification
$notification Fenos\Notifynder\Models\Notification
리턴 boolean | Fenos\Notifynder\Models\Notification