News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Alexander Netkachev's Blog:
Practical PHP events The Java way
November 01, 2006 @ 13:58:00

Continuing on with his look at events in PHP, Alexander Netkachev takes another look today at another type of approach to his handy feature - the "Java way".

In my previous article I summarized event system definitions and showed an example of PHP event model, which is built with the call_user_func() function. This acticle expands the subject by introducing an advanced PHP event model that is based on sender/eventObject/listener collaboration, which was popularized by the Java world.

He steps through some examples with ProtocolCommandSupport.java and ProtocolCommandListener.java functionality, showing how to take that functionality back over to PHP and implement it using the built-in features.

0 comments voice your opinion now!
events java way practical tutorial events java way practical tutorial


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Abstract File Systems with Flysystem

Gergely Hodicska's Blog: What's new in PHP 5.3 - part 1: namespaces

Sanisoft Blog: Theming your CakePHP apps (V1.2)

Piotr Walczyszyn's Blog: Configuring Eclipse PDT & Flash Builder 4 Plug-in for PHP/Flex development

NetTuts.com: BDD With Behat


Community Events





Don't see your event here?
Let us know!


language testing laravel list introduction unittest opinion developer podcast refactor framework wordpress interview series install community configure release code threedevsandamaybe

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework