|
||||||||||||||||||
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 |
- 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
|
||||||