$instance
$instance :\Phile\Core\Event
the Event class for implementing a hook/event system
$instance :\Phile\Core\Event
getInstance(): \Phile\Core\Event
get global event instance
None found |
setInstance(\Phile\Core\Event $instance): void
Set global event instance
\Phile\Core\Event | $instance |
None found |
registerEvent(string $eventName,\Phile\Gateway\EventObserverInterface|callable $object): void
Global register
string | $eventName | |
\Phile\Gateway\EventObserverInterface|callable | $object | observer |
None found |
triggerEvent(string $eventName,array $data = null): void
Global trigger
string | $eventName | |
array | $data |
None found |
register(string $eventName,\Phile\Gateway\EventObserverInterface|callable $object)
method to register an event
string | $eventName | the event to observe |
\Phile\Gateway\EventObserverInterface|callable | $object | observer |
None found |