News Feed
Sections




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

DevShed.com:
The Singleton and Factory Patterns in PHP - Working With Singletons
December 01, 2005 @ 07:31:21

DevShed.com has posted part four in their "The Singleton and Factory Patterns in PHP" series today - "Working with Singletons".

In this fourth part of the series covering the Singleton and Factory Design Patterns in PHP, we will discuss issues stemming from the fact that PHP 4 does not have an abstract class. Since we found it useful in the previous article to define the form element factory class as an abstract class, in this article we will discuss the process for making the form element factory class a Singleton, and how this serves our purposes.

They walk you through the process of using the Singleton pattern, including how to make it all work in PHP4. They keep with the form creation example, and show how to interlace the pattern with it...

0 comments voice your opinion now!
pattern singleton factory form create pattern singleton factory form create


blog comments powered by Disqus

Similar Posts

DevShed: Introduction to Creating Command Objects with PHP 5

DevShed: Building a PHP 5 Form Processor - Using the Form Processor Package

Zend Developer Zone: Generating and Validating Web Forms With PEAR HTML_QuickForm (part 2)

DevShed.com: The Singleton and Factory Patterns in PHP - Working With Singletons

Matthew Weir O'Phinney's Blog: Extending Singletons


Community Events





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


conference voicesoftheelephpant symfony security tool list community version framework introduction language artisanfiles release laravel podcast interview series opinion library composer

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