PHP 클래스 Events, TastyIgniter

Allows you to create hook points throughout the application that any other module can tap into without hacking core code.
저자: Bonfire Dev Team
파일 보기 프로젝트 열기: tastyigniter/tastyigniter 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) This if here solely for CI loading to work. Just calls the initialize() method.
initialize ( ) : void Loads the library's dependencies and configuration.
trigger ( string $event_name = NULL, mixed $payload = NULL ) : void Triggers an individual event.

메소드 상세

__construct() 공개 메소드

This if here solely for CI loading to work. Just calls the initialize() method.
public __construct ( )

initialize() 공개 정적인 메소드

Loads the library's dependencies and configuration.
public static initialize ( ) : void
리턴 void

trigger() 공개 정적인 메소드

Triggers an individual event.
public static trigger ( string $event_name = NULL, mixed $payload = NULL ) : void
$event_name string A string with the name of the event to trigger. Case sensitive.
$payload mixed (optional) An array to send to the event method.
리턴 void