News Feed
Sections




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

DevShed:
Object Interaction and Mediator Classes in PHP 5
March 21, 2007 @ 11:16:00

DevShed wraps up yet another in their design pattern series of articles today with this new tutorial - the final part in their look at using Mediator classes in PHP5.

At this stage I believe that implementing the mediator pattern with PHP 5 should be a pretty painless process to you, but if the examples that I showed you in the first article weren't enough to help you completely grasp this pattern, over the course of this last tutorial I'm going to expand the original mediator class that you learned previously. The expansion will make it capable of maintaining three classes in perfect synchronization.

They start off with the base Mediator class they developed in previous parts of the series and expand it out some more with the functionality needed to keep three (not just two) objects synchronized. To help out, they build some more file handling classes, ones that work with the three different types - numeric, alpha, and alphanumeric content.

0 comments voice your opinion now!
designpattern interaction mediator php5 object designpattern interaction mediator php5 object


blog comments powered by Disqus

Similar Posts

Zend Developer Zone: Junction -- a new persistance layer for PHP 5

David Goodwin's Blog: Book Review: Object-Orientated Programming with PHP5 (Hasin Hayder, Packt)

Chris Hartjes' Blog: What's In Chris' Brain, July 2008 Edition

John Maver's Blog: How to create a Bebo application using PHP 5

Zend Developer Zone: PHP Built in Input filtering


Community Events





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


conference introduction language bugfix series laravel interview tips code framework podcast symfony deployment voicesoftheelephpant threedevsandamaybe list community api zendserver release

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