Class EventListener

Description

An event listener can be attached to an EventTrigger to handle events as they occur.

  • version: $Id: EventListener.interface.php,v 1.2 2007/09/04 20:25:30 adamfranco Exp $
  • license: GNU General Public License (GPL)
  • copyright: Copyright © 2005, Middlebury College
  • since: Jul 18, 2005

Located in /harmoni/core/architecture/events/EventListener.interface.php (line 23)


	
			
Method Summary
void handleEvent (string $eventType, ref $source, array $context)
Methods
handleEvent (line 33)

Handles an event triggered by an EventTrigger. The event type is passed in case this particular EventListener is handling more than one type of event.

  • access: public
void handleEvent (string $eventType, ref $source, array $context)
  • string $eventType
  • array $context: An array of contextual parameters - the content will be dependent on the thrown event.
  • ref $source: object $source The source object of the event.

Documentation generated on Wed, 19 Sep 2007 10:23:03 -0400 by phpDocumentor 1.3.0RC3