<?php
include_once('ACE_Exception.php');
include_once('Event.php');
include_once('EventCaller.php');
include_once('EventInfo.php');
include_once('EventWrapper.php');
interface iBodyLoadEvent
{
public function onBodyLoadCall($dataset);
public function onBodyLoadDestroy();
}
class eventlistener implements iBodyLoadEvent
{
public function onBodyLoadCall($ds)
{
echo 'BodyLoad Event Called<br>';
}
public function onBodyLoadDestroy()
{
echo 'Event BodyLoad Destroyed<br>';
}
}
$event = new EventWrapper('BodyLoad');
$event ->addListener(new eventlistener())
->addListener(new eventlistener())
->addListener(new eventlistener());
echo 'And now, the call:';
$event->call();
?>
|