final protected static function triggerEvent($event, array $context = array())
	{
		if (array_key_exists($event, static::$registered_events)) {
			array_map(function($handler) use ($context)
			{
				call_user_func($handler, $context);
			}, static::$registered_events[$event]);
		}
	}
final protected static function triggerEvent($event, array $context = array())
	{
		if (array_key_exists($event, static::$registered_events)) {
			array_map(function($handler) use ($context)
			{
				call_user_func($handler, $context);
			}, static::$registered_events[$event]);
		}
	}
final protected static function triggerEvent ( $ event , array $ context = array ( ) ) { if ( array_key_exists ( $ event , static :: $ registered_events ) ) { array_map ( function ( $ handler ) use ( $ context ) { call_user_func ( $ handler , $ context ) ; } , static :: $ registered_events [ $ event ] ) ; } }
Trigger an event an call its callback if any exist. Otherwise, nothing

@param string $event   Name of event. E.G. "Error"
@param array  $context An array of paramaters to pass to the callback
@return void
Trigger an event an call its callback if any exist . Otherwise nothing