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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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