PHP 트레잇 Fuel\Event\EventTrait

파일 보기 프로젝트 열기: fuelphp/event

보호된 프로퍼티들

프로퍼티 타입 설명
$_eventBindSelf boolean wether to bind itself to the events
$_eventContainer Container event container
$_eventPrependSelf boolean wether to prepend itself to the arguments array

공개 메소드들

메소드 설명
off ( string $event = null, mixed $handler = null, mixed $context = null ) : object Removes one or more events.
on ( string $event, callable $handler, mixed $context = null, $priority ) : object Attaches a new event.
trigger ( string $event, $arguments = [] ) : object Trigger an event.

메소드 상세

off() 공개 메소드

Removes one or more events.
public off ( string $event = null, mixed $handler = null, mixed $context = null ) : object
$event string event name
$handler mixed event handler
$context mixed closure context
리턴 object $this

on() 공개 메소드

Attaches a new event.
public on ( string $event, callable $handler, mixed $context = null, $priority ) : object
$event string event name
$handler callable event handler
$context mixed closure context
리턴 object $this

trigger() 공개 메소드

Trigger an event.
public trigger ( string $event, $arguments = [] ) : object
$event string event to trigger
리턴 object $this

프로퍼티 상세

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

wether to bind itself to the events
protected bool $_eventBindSelf
리턴 boolean

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

event container
protected Container,Fuel\Event $_eventContainer
리턴 Container

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

wether to prepend itself to the arguments array
protected bool $_eventPrependSelf
리턴 boolean