STOP
STOP = 'Pop\Event\Manager::STOP' : string
Constant to stop the event manager
Event manager class
on(string $name, mixed $action, integer $priority) : \Pop\Event\Manager
Attach an event listener
$event->on('event.name', 'someFunction'); $event->on('event.name', function() { ... }); $event->on('event.name', new SomeClass()); $event->on('event.name', [new SomeClass, 'foo']); $event->on('event.name', 'SomeClass'); $event->on('event.name', 'SomeClass->foo'); $event->on('event.name', 'SomeClass::bar');
string | $name | |
mixed | $action | |
integer | $priority |
off(string $name, mixed $action) : \Pop\Event\Manager
Detach an event listener
string | $name | |
mixed | $action |
__set(string $name, mixed $value) : \Pop\Event\Manager
Set an event
string | $name | |
mixed | $value |
__unset(string $name) : \Pop\Event\Manager
Unset an event
string | $name |
offsetSet(string $offset, mixed $value) : \Pop\Event\Manager
Set an event
string | $offset | |
mixed | $value |
offsetUnset(string $offset) : \Pop\Event\Manager
Unset an event
string | $offset |