News Feed
Sections




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

DevShed:
Generating Outputs from MySQL with Static Members and Methods in PHP 5
October 09, 2006 @ 12:12:00

DevShed is finishing off their series on using static members and methods in PHP5 with this new tutorial covering the creation of output as pulled from a MySQL database using these static members/methods.

Welcome to the last part of the series "Using static members and methods in PHP 5." Made up of two instructive chapters, this series introduces the foundations of using static members and defines static methods in PHP 5-driven development environments.

Since in the first tutorial you were provided with a couple of concrete cases where a class used a static property, as well as one static method (remember the definition of the Singleton class), in this tutorial you'll see another example where these kinds of methods and members are properly utilized.

They give a class to help interface directly with MySQL before getting into the three bits of functionality that make the output possible - ResultToString, ResultToXML, ResultToArray. Finally, they combine the pieces together, making a Factory class that handles the request and pushes the correct output format back out the other side.

0 comments voice your opinion now!
php5 object output mysql static member method php5 object output mysql static member method


blog comments powered by Disqus

Similar Posts

Adam Trachtenberg's Blog: PHP 5 + COM + Skype Help Wanted

Matthew Weier O'Phinney's Blog: A Primer for PHP 5.3's New Language Features

HowToForge.com: How To Set Up suPHP With PHP4 And PHP5

Padraic Brady's Blog: Zend Framework Page Caching: Part 3: Tagging For Static File Caches

David Parra's Blog: Compiling PHP under OpenSolaris


Community Events





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


install release series developer podcast wordpress language application library code api configure bugfix unittest introduction laravel interview community threedevsandamaybe list

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