Proposal for "Event_SignalEmitter"

» Metadata » Status
» Description
Generic signal emitting class with the same API as GObject.

Since GObject doesn't allow classes to define or emit own signals, this class provides a PHP implementation with the same API.

GObject is the base class of all Gtk2 widgets provided by the PHP-Gtk2 extension. While the goal of the class might be the same as Event_Dispatcher, the API is much more common and understandable by PHP-Gtk2 developers.

Since PEAR explicitely allows different solutions to the same problem, I think it is worth considering it as an own package. It also is different from Event_Dispatcher in the fact that you can pass arbritrary data to the callback methods instead having to use Notification objects.
» Dependencies » Links
» Timeline » Changelog
  • First Draft: 2006-11-21
  • Proposal: 2006-11-21
  • Call for Votes: 2007-01-27
  • Christian Weiske
    [2006-11-22 06:30 UTC]

    It also is different from Event_Dispatcher in the fact that you can pass arbritrary data to the callback methods instead having to use Notification objects.