Feature #1514

Add Event-Dispatcher

Added by Bastian Waidelich almost 7 years ago. Updated almost 5 years ago.

Status:Resolved Start date:2008-09-15
Priority:Could have Due date:
Assigned To:Bastian Waidelich % Done:

100%

Category:SignalSlot
Target version:-
PHP Version: Complexity:
Has patch:

Description

Implement Event-Dispatcher pattern in order to get some kind of hook-mechanism into FLOW3.

FLOW3_Events.png (4.9 kB) Bastian Waidelich, 2008-09-15 12:04

Associated revisions

Revision 8173fb6f
Added by Bastian Waidelich almost 7 years ago

  • FLOW3: (Event) Implemented simple Event-Dispatcher. Resolves #1514.
  • Usage:
    $dispatcher->addEventListener(
    MyEvent::EVENT_TYPE,
    function() { print 'MyEvent dispatched!'; }
    );
    ...
    $dispatcher->dispatchEvent(new MyEvent(MyEvent::EVENT_TYPE));

History

#1 Updated by Bastian Waidelich almost 7 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r1222.

Also available in: Atom PDF