News Feed
Jobs Feed
Sections




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

DevShed:
An Introduction to Building Proxy Classes with PHP 5
January 02, 2007 @ 09:41:00

DevShed starts off a new two-part series today with this first look at building proxy classes with PHP 5.

In short, in the proxy pattern, one object is created by another only when the functionality of the first one is required. In this two-part series, I'm going to walk you through the key points of how to use this pattern with PHP 5, as well as how to apply it in different real-world situations.

They start with the creation of an expandable XML processor class that can be enhanced when additional functionality is needed. They use this class as a proxy for the requests and create a separate class (a normal XMLProcessor class) to perform the actual requests for the information - grabbing information from the loaded XML document.

0 comments voice your opinion now!
proxy object php5 design patterm xml parse proxy object php5 design patterm xml parse


blog comments powered by Disqus

Similar Posts

Project: Aleksey Martynov's lexa-xml-serialization Tool for PHP 5.3

PHPBuilder.com: Parsing XML with the DOM Extension for PHP 5

PHP Security Blog: PHP 5.2.0 and allow_url_include

Dikini.net: Poor man's macro programming in php (revisited)

ThinkPHP Blog: Webapplikationen mit PHP5 und IBM DB2


Community Events











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


hhvm framework language package composer database opinion unittest application symfony2 component install release hack introduction security podcast series facebook performance

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