News Feed
Sections




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

DevShed:
Working with MySQL Result Sets and the Decorator Pattern in PHP
September 06, 2006 @ 06:58:38

DevShed continues its look at the Decorator pattern with this new article today talking about working with MySQL result sets inside of the structure of the Decorator pattern.

Definitely, the pattern in question can be used for generating different types of outputs (or views) based on a returned result set, by using a few decorator classes that I'll define in the course of this tutorial. Hopefully, when you finish reading these lines, you should have a clear idea of how to include decorator classes in your object-based PHP applications.

They start off by showing how they're going to handle the MySQL result sets normally with a class and how to use that class in an example. Finally, they tie all of that in with the Decorator pattern, creating multiple Decorator classes to handle the various MySQL result set types.

0 comments voice your opinion now!
decorator pattern mysql result set tutorial part2 decorator pattern mysql result set tutorial part2


blog comments powered by Disqus

Similar Posts

Hailoapp.com: A Journey into Microservices

Jani Hartikainen's Blog: Integrating FCKeditor with Zend_Form

DeveloperTutorials.com: How to Install PHP 5 on Linux

SitePoint.com: Introduction to Unit Testing in PHP with PHPUnit

Klaus Graefensteiner's Blog: Two ways to test for prime numbers in PHP: Sieve and File


Community Events

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


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

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