PHP 클래스 Fenos\Notifynder\Handler\Dispatcher

상속: implements Fenos\Notifynder\Contracts\NotifynderDispatcher
파일 보기 프로젝트 열기: fenos/notifynder

공개 프로퍼티들

프로퍼티 타입 설명
$defaultWildcard string Default namespace for notifications events.

보호된 프로퍼티들

프로퍼티 타입 설명
$event Illuminate\Events\Dispatcher
$sender string Default sender method.

공개 메소드들

메소드 설명
__construct ( Illuminate\Contracts\Events\Dispatcher $event )
boot ( array $listeners ) Boot The listeners.
delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed Delegate events to categories.
fire ( Fenos\Notifynder\Notifynder $notifynder, string $eventName, string $categoryName = null, mixed | null $values = [] ) : mixed | null It fire the event associated to the passed key, trigger the listener method bound with.
hasNotificationToSend ( $notificationsResult ) : boolean Check if the fired method has some notifications to send.
sendWith ( $customMethod ) Tell the dispatcher to send the notification with a custom (extended method).

보호된 메소드들

메소드 설명
generateEventName ( $eventName ) : string Get Event name.

메소드 상세

__construct() 공개 메소드

public __construct ( Illuminate\Contracts\Events\Dispatcher $event )
$event Illuminate\Contracts\Events\Dispatcher

boot() 공개 메소드

Boot The listeners.
public boot ( array $listeners )
$listeners array

delegate() 공개 메소드

Delegate events to categories.
public delegate ( Fenos\Notifynder\Notifynder $notifynder, array $data, array $events ) : mixed
$notifynder Fenos\Notifynder\Notifynder
$data array
$events array
리턴 mixed

fire() 공개 메소드

It fire the event associated to the passed key, trigger the listener method bound with.
public fire ( Fenos\Notifynder\Notifynder $notifynder, string $eventName, string $categoryName = null, mixed | null $values = [] ) : mixed | null
$notifynder Fenos\Notifynder\Notifynder
$eventName string
$categoryName string
$values mixed | null
리턴 mixed | null

generateEventName() 보호된 메소드

Get Event name.
protected generateEventName ( $eventName ) : string
$eventName
리턴 string

hasNotificationToSend() 공개 메소드

Check if the fired method has some notifications to send.
public hasNotificationToSend ( $notificationsResult ) : boolean
$notificationsResult
리턴 boolean

sendWith() 공개 메소드

Tell the dispatcher to send the notification with a custom (extended method).
public sendWith ( $customMethod )
$customMethod

프로퍼티 상세

$defaultWildcard 공개적으로 정적으로 프로퍼티

Default namespace for notifications events.
public static string $defaultWildcard
리턴 string

$event 보호되어 있는 프로퍼티

protected Dispatcher,Illuminate\Events $event
리턴 Illuminate\Events\Dispatcher

$sender 보호되어 있는 프로퍼티

Default sender method.
protected string $sender
리턴 string