NAME
Eve::Event - a base class for all event classes.
SYNOPSIS
package Eve::Event::Foo;
use parent qw(Eve::Event);
1;
my $event = Eve::Event::Foo->new(event_map => $event_map)
->trigger();
DESCRIPTION
Eve::Event is an abstract class that must be inherited by event classes. This will enable them to be triggered and have handlers bound to them.
Constructor arguments:
event_map
-
an event map the event will interact with.
METHODS
init()
trigger()
The trigger()
method is used to start processing the event by all handlers that are bound to it and its ancestors.
SEE ALSO
LICENSE AND COPYRIGHT
Copyright 2012 Igor Zinovyev.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.