News Feed
Jobs Feed
Sections

Recent Jobs

News Archive
feed this:

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



PHP Magazine:
Weekly PHP Roundup [12th June- 16th June]
June 16, 2006 @ 09:03:48

PHP Magazine has posted their latest weekly roundup for all things happening in the PHP community. This roundup covers June 12th through June 16th.

Some of the topics touched on this week include:

  • the "Five Best Next Generation PHP Frameworks" article
  • "The Evolution of PHP on the Internet" - Nexen.net's latest stats
  • comparing mod_php and FastCGI
  • the announcement of "Baking Day" from the CakePHP group
  • and several of the new PEAR/PECL/Zend Framework updates from the week

Of course, this list only touches briefly on all of the happenings this week, so check out the full list on their site.

0 comments voice your opinion now!
phpmagazine weekly summary releases events articles phpmagazine weekly summary releases events articles


DevShed:
Simulating Events with PHP 5
February 21, 2006 @ 06:46:23

On DevShed today, there's this new tutorial aimed at more advanced PHP developers concerning how to simulate events in PHP5.

PHP has the drawback of not supporting events. Fortunately, a basic structure can be built to support events in PHP 5. This article tackles that problem with some proof of concept code.

It seemed reasonable to me that some sort of basic structure could be established to support events in PHP 5, so I set out to whip something up as quickly as possible as a proof of concept. The contents of this article are the work of roughly one programming hour and surely stand to be improved upon, but the basic idea is this: instantiate an object and attach event handlers; the handlers will be executed when the events they are associated with are raised.

They look first at how to create a simple object to store the information in and a "collection" class to manage those objects. They move on to the creation of the event handler class and a "collection" class for handling those as well. Finally, they get to the combination of the above items - a class that does an eval on the inputted string and creates an associative array.

0 comments voice your opinion now!
php simulate events php5 collection class trigger handler php simulate events php5 collection class trigger handler



Community Events









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


security release framework conference releases mysql zendframework cakephp job developer package PHP5 zend database application ajax book code example PEAR

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