Revenue Source

Welcome to the Revenue Source affiliate marketing forums.

You are viewing our internet marketing and SEO forums as a guest which gives you limited access to most of our discussions.  By joining our free community, you will have access to post affiliate marketing topics, communicate privately with other members (PM), exchange SEO strategies, and access many other special features.  Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems, please don't hesitate to contact us.

Go Back   Revenue Source > Site Design & Development > Programming Help
Reload this Page DevShed: An Introduction to Using the Decorator Pattern with PHP
Tags: , , , , ,

Reply
 
LinkBack Thread Tools Search this Thread
Old
  (#1 (permalink))
Affiliate Blogs is Offline
Revenue Source Veteran
Affiliate Blogs has a brilliant future here!
 
Affiliate Blogs's Avatar
 
Join Date: Oct 2005
Posts: 9,224
Jack of All Trades
CyberSpace United States
   
DevShed: An Introduction to Using the Decorator Pattern with PHP - 11-28-2006

In yet another of their looks at using patterns in PHP, DevShed has posted the first part of a new three-part series today covering the Decorator patten, useful for adding new or other functionality to prexisting objects.
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.
To help you get started, they start at ground level with a basic class, one to save a string to a file. They then, in a different class, build the Decorator object, adding the ability to reset and display the string. To help out, they also make two other classes to make the string either all uppercase or all lowercase. Finally, they tie them all together, amking an application that adds its functionality on the fly.


DevShed: An Introduction to Using the Decorator Pattern with PHP - Read More...
  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: DevShed: An Introduction to Using the Decorator Pattern with PHP
Thread Thread Starter Forum Replies Last Post
DevShed: Building an Error Logger with the Chain of Responsibility Pattern in PHP 5 Affiliate Blogs Programming Help 0 11-28-2006 05:08 AM
DevShed: Working with MySQL Result Sets and the Decorator Pattern in PHP Affiliate Blogs Programming Help 0 11-28-2006 05:08 AM
Europeans? media consumption pattern changes Affiliate Blogs Affiliate Marketing 0 11-14-2006 06:31 PM
Merchant 2072 - CatsPlay.com Cat Furniture - FREE SHIPPING on select Decorator Pet Fu Affiliate Marketing News Shareasale Affiliate Deals 0 10-17-2006 07:27 PM
An introduction from one of your hosts RS Mike Goofing Around & Program Discussion 4 11-24-2004 07:45 PM



© 2004-6 RevenueSource.com.  All rights reserved.  Do not duplicate or redistribute in any form.
This website and its logos/design are property of RevenueSource.com.  All rights reserved. vBSEO 3.2.0 RC7


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34