News Feed
Sections




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

DevShed:
Using the Observer Design Pattern with Static Data in PHP 5
September 17, 2007 @ 12:01:00

DevShed continues their look at handling static data in a dynamic application with the final part of the series - using the observer design pattern to handle the insertion of the static information.

I'll show you how to use a static property, along with the programmatic model dictated by the observer pattern, to implement an expandable data validation system. This task might have an immediate application in a real situation.

They show how to handle user information (as defined as properties in the creation of the user objects) and pushing that data back out into the page. The observer pattern comes into play when they go to validate the user information checking to see if it's all alphabetical, numeric or an email address.

4 comments voice your opinion now!
observer designpattern static data tutorial php5 observer designpattern static data tutorial php5


blog comments powered by Disqus

Similar Posts

Jonathan Snook's Blog: Easier Static Pages for CakePHP 1.2

DevShed: Using Unbuffered Queries and More with SQLite with PHP 5

Adam Gotterer's Blog: Building an Object Collection Manager with the Standard PHP Library (SPL)

Oracle Technology Network: Scaling a PHP MySQL Web Application, Part 1

RosSoft Blog: Tutorial - Web based search engine for Flickr


Community Events

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


interview opinion series podcast security example release api library language laravel5 laravel framework version introduction community video voicesoftheelephpant extension php7

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