Class: EventDispatcher

Source Location: /CORE/system/classes/event/EventDispatcher.php

Class EventDispatcher

Class Overview

Broadcast messages through the system to registered listener usig this class.

Located in /CORE/system/classes/event/EventDispatcher.php [line 39]



		
				Author(s):
		
  • Kevin Papst
Information Tags:
Version:  $Id: EventDispatcher.php,v 1.2 2008/10/10 12:04:15 kpapst Exp $
Copyright:  Copyright (C) Kevin Papst
License:  GNU Public License

Methods

[ Top ]
Method Summary
void   propagateEvent()   Call EventDispatcher::propagateEvent('foo', array()); for sending the event 'foo' with no parameter.

[ Top ]
Methods
propagateEvent  [line 50]

  void propagateEvent( String $type, [Array $params = array()]  )

Call EventDispatcher::propagateEvent('foo', array()); for sending the event 'foo' with no parameter.

Call EventDispatcher::propagateEvent('bar', array('id' => 1)); for sending the event 'bar' with the parameter id = 1.

Parameters:
String   $type:  the event type to broadcast
Array   $params:  the parameter to send along


[ Top ]