#!/usr/bin/php * @package wombatSite * @subpackage test */ require_once dirname( __FILE__ ) . '/../factoryLoader.php'; wbFactory::setParam( 'debugMode', 'Text' ); wbFactory::configure(); // $ctl =& wbFactory::singleton( 'wbEventController' ); // load event handler class wbFactory::includeClass( 'wbEvent' ); $eData = array( 'count' => 1 ); wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); ++$eData['count']; wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); ++$eData['count']; wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); wbEvent::trigger( 'test:second', 'This is the second test!' ); $eData = array( 'count' => 1 ); wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); ++$eData['count']; wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); ++$eData['count']; wbEvent::trigger( 'test:first', 'This is the {COUNT} test!', $eData ); wbEvent::trigger( 'test:second', 'This is the second test!' ); wbDebugger::printMsg(); ?>