PHP 클래스 Owl\Handlers\Events\SlackNotification

파일 보기 프로젝트 열기: owl/owl 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$itemService Owl\Services\ItemService
$slackUtils Owl\Libraries\SlackUtils
$userService Owl\Services\UserService

공개 메소드들

메소드 설명
__construct ( ItemService $itemService, UserService $userService, SlackUtils $slackUtils )
onItemCreated ( Owl\Events\Item\CreateEvent $event ) 記事が新規作成された時
onItemEdited ( Owl\Events\Item\EditEvent $event ) 記事が編集された時
subscribe ( Illuminate\Events\Dispatcher $events ) 各イベントにハンドラーメソッドを登録

보호된 메소드들

메소드 설명
itemShouldNotified ( stdClass $item ) : boolean 通知してよい記事かどうかチェック

메소드 상세

__construct() 공개 메소드

public __construct ( ItemService $itemService, UserService $userService, SlackUtils $slackUtils )
$itemService Owl\Services\ItemService
$userService Owl\Services\UserService
$slackUtils Owl\Libraries\SlackUtils

itemShouldNotified() 보호된 메소드

通知してよい記事かどうかチェック
protected itemShouldNotified ( stdClass $item ) : boolean
$item stdClass
리턴 boolean

onItemCreated() 공개 메소드

記事が新規作成された時
public onItemCreated ( Owl\Events\Item\CreateEvent $event )
$event Owl\Events\Item\CreateEvent

onItemEdited() 공개 메소드

記事が編集された時
public onItemEdited ( Owl\Events\Item\EditEvent $event )
$event Owl\Events\Item\EditEvent

subscribe() 공개 메소드

各イベントにハンドラーメソッドを登録
public subscribe ( Illuminate\Events\Dispatcher $events )
$events Illuminate\Events\Dispatcher

프로퍼티 상세

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

protected ItemService,Owl\Services $itemService
리턴 Owl\Services\ItemService

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

protected SlackUtils,Owl\Libraries $slackUtils
리턴 Owl\Libraries\SlackUtils

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

protected UserService,Owl\Services $userService
리턴 Owl\Services\UserService