News Feed
Sections




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

DevShed:
Design Patterns and PHP 5
September 28, 2006 @ 08:37:00

Devshed is continuing their look at OOP and design patterns (started here) with the second part of the series - a look at the Adapter and Template Patterns. It's another excerpt from Advanced PHP Programming by George Schlossnagle.

You have likely heard of design patterns, but you might not know what they are. Design patterns are generalized solutions to classes of problems that software developers encounter frequently.

To claim that a single chapter on design patterns is in any way complete would be ridiculous. The following sections explore a few patterns, mainly as a vehicle for showcasing some of the advanced OO techniques available in PHP.

They cover the Adapter pattern first, showing how it can be used to create an alternative to an API object (a database layer, in their case). They follow this up with a quick look at the Template pattern, handy to create a set of "hidden" values inside of a extended class.

0 comments voice your opinion now!
object oriented programming design pattern adapter template object oriented programming design pattern adapter template


blog comments powered by Disqus

Similar Posts

KillerPHP.com: PHP Design Patterns - when should they be used?

Jim Plush's Blog: Followup on rethinking Zend Models with DDD - Framework code included

Community News: CakePHP 1.2 Release (and a New Site Design)

Derek Allard's Blog: Modifying the default CodeIgniter Calendar template for fun and profit

Rob Allen's Blog: A review of "Object-Oriented Programming with PHP5"


Community Events

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


conference voicesoftheelephpant opinion laravel symfony2 framework community interview series release introduction api php7 example podcast extension library install performance version

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