php|architect: The Magazine For PHP Professionals
  Home
Login    |      March 5, 2007  
About/Contact
php|tek 2007: Chicago
For Authors/Advertisers
Try/Buy & Subscribe
Forums
PHP Training
Zend Certification
Webcasts
Login
 Article Search

News   News   News     An Introduction to Using the Decorator Pattern with PHP
Tuesday, August 29th 2006 13:22:47 GMT
Click to rate:    
31 votes / avg. rating 0.00%

 Tags:  ,
 Add tag(s) (comma separated):
[Tags beta] — [Add New][Help]  

Tags Help

Tags are keywords associated with a web page that help classifying information. You can find a good explanation here.

To add one or more tags to this page, simply enter them below (separate them with a comma) and hit enter or click on the "Go" button.

leslie writes:  

DevShed has posted the part one of a new three-part series on Using the Decorator Pattern with PHP.

Indeed, one of the most appealing aspects of the decorator design pattern is the ease with which you can use a class of different type to extend the capabilities of another. Of course, this isn't always the best course of action to take, simply because it can be much easier to modify the original class by using inheritance, but there are situations where a decorator class can find its place inside an application.

Due to the wide range of web applications where the decorator pattern can be successfully applied, over the course of this series, I'll show you some useful pointers to demonstrate how this pattern works, and how it can be introduced in your own PHP applications with only minor hassles. Before you start reading the rest of this article, make sure that you have a pretty good understanding of object-based programming with PHP, since you'll see an abundance of material related to this topic.

Having introduced the basics of the decorator pattern, let's learn how it can be applied to PHP with several practical examples. Let's get started!

For more information visit: http://www.devshed.com

New Comment
This form allows you to type in a new comment. Keep in mind the following:
  • The system accepts input in plain text format. Newlines will be converted to the HTML equivalent, and the system will try to catch most URLs and make them clickable.
  • Your e-mail address will never be displayed. We will use it only to notify you when new comments are posted to this page.
  • As a rule, we do not delete comments unless they are offensive, racist, spam or otherwise inappropriate.
  • Bold fields are required
Your Name:
Your e-mail:
Type this number:
Subject:
Comment:
Comments   New Comment
No comments yet. Why not write up one of your own?
New Security Book!
Written by security expert Ilia Alshanetsky, php|architect's Guide to PHP Security teaches you everything you need to know to make your applications secure and reliable. Find out more...
PHP Design Patterns
Book Now Available!
We did it again! Here's a great new book by author Jason Sweat on 16 design patterns conceived specifically for PHP developers. Now available at a special price! Find out more...
Check out our great new training courses, designed by some of the best experts in the industry and delivered using our exclusive training technology! We have courses for both the beginner and advanced level, as well as our successful Zend Certification Training courses starting in October, November and December. Plus, our new PHP Course Collection saves you $700 US! Find out more...
php|a's
Zend PHP Certification Practice Book
Now available! 200 questions written by the same authors who created the exam. The perfect preparation tool!
Get a free sample chapter now!
Official Zend Guide
Now Available in PDF
The Official Zend Certification Guide is now available exclusively from php|a in a print+PDF format at no extra cost. Get yours today!
Find excellent resources for the German PHP community at Dynamic Web Pages.



Copyright © 2002-2007 Marco Tabini & Associates, Inc. — All Rights Reserved.
*US and Euro Prices are approximate | Privacy Policy | Terms & Conditions