News Feed
Sections




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

DevShed:
Introducing Bridge Classes with PHP 5
January 03, 2007 @ 10:24:00

DevShed introduces a new kind of class in their latest tutorial - bridge classes:

The bridge class, or what's commonly known as the bridge pattern, lets you create a class with its abstract functionality and implementation residing on different class hierarchies. This lets you decouple the class from its concrete application. This article, the first of three parts, introduces you to the bridge pattern and its uses.

They look at what it is first, describing it as a method of decoupling the functionality behind a factory object. This is followed (logically) with a simple example of one in use with the creation of a "Message" class and object. They put the core logic of the pattern in place behind it and combine the object and the backend to save the message off to a file.

0 comments voice your opinion now!
bridge class object pattern php5 tutorial bridge class object pattern php5 tutorial


blog comments powered by Disqus

Similar Posts

PHPit.net: An Introduction to the Winbinder Library (Part 1)

DevShed: Using Yahoo Web Services to Perform Searches with an Object-Oriented Approach

Zend Developer Zone: Indexing Email Messages with PHP, Zend Lucene and Sphinx

Community News: Responses to the PHP 5.3 Release

Lorna Mitchell's Blog: Locale-Sensitive Dates in PHP


Community Events

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


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

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